Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / gnat.dg / discr22.adb
blobaf4f9ab78997d006263ec3b7eeb34151126a46d2
1 -- { dg-do compile }
2 -- { dg-options "-gnatws" }
4 procedure Discr22 is
6 subtype Precision is Integer range 1 .. 5;
8 type Rec(D1 : Precision; D2 : Integer) is record
9 case D1 is
10 when 1 => I : Integer;
11 when others => null;
12 end case;
13 end record;
14 for Rec use record
15 D1 at 0 range 0 .. 7;
16 end record;
18 P : Precision;
19 X : Rec(P, 0);
21 begin
22 null;
23 end;