aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/task3.ads
blob: 324d894921243950395c9a895ebe4052c8405e60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
with Task3_Pkg2; use Task3_Pkg2;

package Task3 is
   type Child is new Root with null record;
   type Child_Ptr is access Child;

   type Child_Wrapper is record
      Ptr : Child_Ptr := null;
   end record;

   procedure Destroy (Obj : in out Child_Wrapper);
end Task3;