Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / discr49.adb
blob6274c423df1a59e0c612b05974b99acee8a74efb
1 -- { dg-do run }
3 with Discr49_Rec2; use Discr49_Rec2;
5 procedure Discr49 is
6 Obj : Child (True);
7 I : Integer := Value (Obj) + Boolean'Pos (Obj.Discr);
8 begin
9 if I /= 125 then
10 raise Program_Error;
11 end if;
12 end Discr49;