repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Require target lra in gcc.dg/pr108095.c
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
discr49.adb
blob
6274c423df1a59e0c612b05974b99acee8a74efb
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
;