gcc/cp
[official-gcc.git] / gcc / testsuite / gnat.dg / discr28.ads
blob3288b52bfcbe689d5ecd8ac985bde828f7d031a8
1 with Discr28_Pkg;
3 package Discr28 is
5 type Enum is (One, Two);
7 type Rec (D : Enum := One) is record
8 case D is
9 when One => null;
10 when Two => S : String (1 .. Discr28_Pkg.N);
11 end case;
12 end record;
14 Default_Rec : constant Rec := (D => One);
16 procedure Proc1;
17 procedure Proc2;
19 end Discr28;