PR target/84336
[official-gcc.git] / gcc / testsuite / gnat.dg / discr34_pkg.ads
blob9a3380e371d2ae5527581aab170b582abc5d74a1
1 package Discr34_Pkg is
3 function N return Natural;
5 type Enum is (One, Two);
7 type Rec (D : Enum := One) is record
8 case D is
9 when One => S : String (1 .. N);
10 when Two => null;
11 end case;
12 end record;
14 function F return Rec;
16 end Discr34_Pkg;