re PR c++/84691 (internal compiler error: in poplevel_class, at cp/name-lookup.c...
[official-gcc.git] / gcc / testsuite / gnat.dg / specs / lto3_pkg1.ads
blob5619b60c77396f527c24a46d98c0101c6289bf6b
1 -- { dg-excess-errors "no code generated" }
3 with Lto3_Pkg2;
5 generic
6 type Id_T is range <>;
7 package Lto3_Pkg1 is
9 type Variable_Data_T (Fixed : Boolean := False) is
10 record
11 case Fixed is
12 when True =>
13 Length : Natural;
14 when False =>
15 null;
16 end case;
17 end record;
19 function Is_Fixed return Boolean;
21 type Variable_Data_Fixed_T is new Variable_Data_T (Is_Fixed);
23 package Db is new Lto3_Pkg2 (Id_T => Id_T,
24 Data_T => Variable_Data_Fixed_T);
26 end Lto3_Pkg1;