RISC-V: Add support for riscv-*-*.
[official-gcc.git] / gcc / testsuite / gnat.dg / discr47.adb
blob0aaa655ca785bef89da875c9d740eaba501ffe3c
1 -- { dg-do run }
2 -- { dg-options "-O -gnatws" }
4 procedure Discr47 is
6 type Rec (D : Boolean := False) is record
7 case D is
8 when True => null;
9 when False => C : Character;
10 end case;
11 end record;
13 R : Rec;
15 begin
16 if R'Size /= 16 then
17 raise Program_Error;
18 end if;
19 end;