gcc/cp
[official-gcc.git] / gcc / testsuite / gnat.dg / opt23_pkg.ads
blobb4e5f0ebd6e19c15a9aec8d889bf72d7651382fd
1 package Opt23_Pkg is
3 function N return Positive;
4 pragma Import (Ada, N);
6 type Path is array(1 .. N) of Long_Float;
7 type Path_Vector is array (Positive range <>) of Path;
8 type Path_Vector_P is access all Path_Vector;
9 type Path_Vector_PV is array(Positive range <>) of Path_Vector_P;
10 type Path_Vector_P2 is access all Path_Vector_PV;
12 type Vector is array (Positive range <>) of Natural;
13 type Vector_Access is access Vector;
15 type Rec is record
16 Val : Path_Vector_P2;
17 Step : Vector_Access;
18 end record;
20 function Get (R : Rec; I : Positive; M : Natural) return Path;
21 pragma Inline (Get);
23 end Opt23_Pkg;