re PR c++/84691 (internal compiler error: in poplevel_class, at cp/name-lookup.c...
[official-gcc.git] / gcc / testsuite / gnat.dg / specs / pack9.ads
blob9d5e02764be810bb74ba7c6de10283ef93a3bb4f
1 -- { dg-do compile }
3 package Pack9 is
5 subtype Zero is Natural range 0 .. 0;
7 type Rec (D : Boolean) is record
8 case D is
9 when True => Z : Zero;
10 when False => null;
11 end case;
12 end record;
13 pragma Pack (Rec);
15 end Pack9;