RISC-V: Add support for riscv-*-*.
[official-gcc.git] / gcc / testsuite / gnat.dg / return4.adb
blob8202acf51bc5521f427e0073ac3f8a45fe8593e1
1 -- { dg-do run }
2 -- { dg-options "-O" }
4 with Return4_Pkg; use Return4_Pkg;
6 procedure Return4 is
8 type Local_Rec is record
9 C : Character;
10 R : Rec;
11 end record;
12 pragma Pack (Local_Rec);
14 L : Local_Rec;
15 for L'Alignment use 2;
17 begin
18 L.R := Get_Value (0);
19 if L.R.I1 /= 0 then
20 raise Program_Error;
21 end if;
22 end;