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
/
opt51.adb
blob
0d2c82007bf140606cac81dfff2146c49f32ac90
1
-- { dg-do compile }
2
-- { dg-options "-O2 -fdump-tree-optimized" }
3
4
with
Opt51_Pkg
;
use
Opt51_Pkg
;
5
6
procedure
Opt51
(
E
:
Enum
;
F
:
out
Float
)
is
7
begin
8
case
(
E
)
is
9
when
One
=>
10
F
:=
1.0
;
11
when
Two
=>
12
F
:=
2.0
;
13
when
Three
=>
14
F
:=
3.0
;
15
when others
=>
16
raise
Program_Error
;
17
end case
;
18
end
;
19
20
-- { dg-final { scan-tree-dump-not "check_PE_Explicit_Raise" "optimized" } }