Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / discr5.adb
blob631db55dba0706db96e775be7ff850f3d59a2e84
1 -- { dg-do compile }
3 procedure Discr5 is
5 type Enum is (Ten, Twenty);
6 for Enum use (10, 20);
7 type Arr is array (Enum range <>) of Integer;
8 type Rec (Discr: Enum := Ten) is record
9 case Discr is
10 when others =>
11 A: Arr (Ten .. Discr);
12 end case;
13 end record;
15 begin
16 null;
17 end;