Debian Codegraph @

gcc/testsuite/gnat.dg/discr49.adb

raw
1 -- { dg-do run }
2
3 with Discr49_Rec2; use Discr49_Rec2;
4
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;