2016-11-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gnat.dg / loop_optimization8_pkg2.ads
blobb92cb588bd17e6c21b73d2ef6dcb7c91a1fbd2e5
1 package Loop_Optimization8_Pkg2 is
3 type Array_T is array (Natural range <>) of Integer;
5 type Obj_T (Length : Natural) is
6 record
7 Elements : Array_T (1 .. Length);
8 end record;
10 type T is access Obj_T;
12 function Length (Set : T) return Natural;
13 function Index (Set : T; Position : Natural) return Integer;
14 pragma Inline (Length, Index);
16 end Loop_Optimization8_Pkg2;