PR target/84336
[official-gcc.git] / gcc / testsuite / gnat.dg / opt46_pkg.ads
blob1309315378f2742e24f364019c28b1ff4c5c91b1
1 generic
2 type Table_Component_Type is private;
3 type Table_Index_Type is range <>;
5 Table_Low_Bound : Table_Index_Type;
7 package Opt46_Pkg is
9 type Table_Type is
10 array (Table_Index_Type range <>) of Table_Component_Type;
11 subtype Big_Table_Type is
12 Table_Type (Table_Low_Bound .. Table_Index_Type'Last);
14 type Table_Ptr is access all Big_Table_Type;
16 type Table_Private is private;
18 type Instance is record
19 Table : aliased Table_Ptr := null;
20 P : Table_Private;
21 end record;
23 function Last (T : Instance) return Table_Index_Type;
25 private
27 type Table_Private is record
28 Last_Val : Integer;
29 end record;
31 end Opt46_Pkg;