blob: 6274c423df1a59e0c612b05974b99acee8a74efb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
-- { dg-do run }
with Discr49_Rec2; use Discr49_Rec2;
procedure Discr49 is
Obj : Child (True);
I : Integer := Value (Obj) + Boolean'Pos (Obj.Discr);
begin
if I /= 125 then
raise Program_Error;
end if;
end Discr49;
|