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
* gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
opt40.adb
blob
aa9dc3fc2e7d91dac7f4a3ca3aeb351bb087c30b
1
-- { dg-do compile }
2
-- { dg-options "-O2 -fdump-tree-optimized" }
3
4
pragma
Suppress
(
Overflow_Check
);
5
6
function
Opt40
(
X
:
Integer
;
Y
:
Integer
)
return
Positive
is
7
Z
:
Integer
;
8
begin
9
if
X
>=
Y
then
10
return
1
;
11
end if
;
12
Z
:=
Y
-
X
;
13
return
Z
;
14
end
;
15
16
-- { dg-final { scan-tree-dump-not "gnat_rcheck" "optimized" } }