RISC-V: Add support for riscv-*-*.
[official-gcc.git] / gcc / testsuite / gnat.dg / alignment12.adb
blob0992913250ec95f414a8a792e0cc886ddae05c88
1 -- { dg-do run }
2 -- { dg-options "-gnatws" }
4 procedure Alignment12 is
6 type Rec is record
7 I : Integer;
8 end record;
10 R : Rec;
11 for R'Alignment use 8;
13 begin
14 if R'Size /= 32 then
15 raise Program_Error;
16 end if;
17 end;