compiler: give error for non-int arguments to make
[official-gcc.git] / gcc / testsuite / gnat.dg / aggr19_pkg.ads
blob4f98a4d30d87f938a7b50dbc8910589aac1c3e9c
1 package Aggr19_Pkg is
3 type Rec1 (D : Boolean := False) is record
4 case D is
5 when False => null;
6 when True => Pos : Integer;
7 end case;
8 end record;
10 type Rec2 is record
11 L : Rec1;
12 end record;
14 type Rec3 is tagged null record;
16 type Enum is (One, Two, Three);
18 type Rec4 (Kind : Enum := One) is record
19 Node : Rec2;
20 case Kind is
21 when One => R : Rec3;
22 when Others => I : Integer;
23 end case;
24 end record;
26 type Rec5 is record
27 Ent : Rec4;
28 end record;
30 procedure Proc (Pool : in out Rec5);
32 end Aggr19_Pkg;