c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / gnat.dg / discr46.ads
blob18b0de13876c93791059f74d66dd167d0ac96f61
1 package Discr46 is
3 type Enum is (One, Two, Three);
4 for Enum use (One => 1, Two => 2, Three => 3);
6 type Rec1 (D : Boolean := False) is record
7 case D is
8 when False => null;
9 when True => T : Integer;
10 end case;
11 end record;
13 type Rec2 is record
14 R : Rec1;
15 C : Character;
16 end record;
18 type Arr is array (Enum) of Rec2;
20 A : Arr;
22 function F (Id : Enum) return Integer;
24 end Discr46;