summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/lto9_pkg2.ads
blob: 881d02b54f4c6a26bef8a4f287a0414b5a3bb30f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
generic

   Size : in Positive;
   type Element_Type (<>) is private;
   type Element_Ptr       is access all Element_Type;

package Lto9_Pkg2 is

   subtype Index is Positive range 1 .. (Size + 1);

   type List_Array is array (Index) of Element_Ptr;

   type List_Type is record
      Elements : List_Array;
   end record;

   procedure Put (List     : in out List_Type;
                  Elem_Ptr : in     Element_Ptr;
                  Location : in     Index);

end Lto9_Pkg2;