--  Copyable reclaimed types (T30): `Adjust` only on a type that is not limited, with
--  `Global => null`, and no access values (a copy would share what they own).
procedure Main is
   package Bad is
      --  limited, yet adjusted
      type Lim is limited private
        with Finalizable => (Adjust => Copy_Lim, Finalize => Free_Lim, Relaxed_Finalization => True);
      procedure Copy_Lim (X : in out Lim) with Global => null;
      procedure Free_Lim (X : in out Lim) with Global => null;

      --  an adjuster with effects beyond its object
      type Noisy is private
        with Finalizable => (Adjust => Copy_Noisy, Finalize => Free_Noisy, Relaxed_Finalization => True);
      procedure Copy_Noisy (X : in out Noisy);
      procedure Free_Noisy (X : in out Noisy) with Global => null;

      --  access values in a copyable type
      type Shared is private
        with Finalizable => (Adjust => Copy_Shared, Finalize => Free_Shared, Relaxed_Finalization => True);
      procedure Copy_Shared (X : in out Shared) with Global => null;
      procedure Free_Shared (X : in out Shared) with Global => null;
   private
      type Lim is limited record
         N : Natural := 0;
      end record;
      type Noisy is record
         N : Natural := 0;
      end record;
      type Cell is access Natural;
      type Shared is record
         Data : Cell;
      end record;
   end Bad;

   package body Bad is
      procedure Copy_Lim (X : in out Lim) is null;
      procedure Free_Lim (X : in out Lim) is null;
      procedure Copy_Noisy (X : in out Noisy) is null;
      procedure Free_Noisy (X : in out Noisy) is null;
      procedure Copy_Shared (X : in out Shared) is null;
      procedure Free_Shared (X : in out Shared) is null;
   end Bad;
begin
   null;
end Main;
