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
PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
opt53.adb
blob
936277db85f65fad9f396b6b5852df5801be39b2
1
-- { dg-do compile }
2
-- { dg-options "-O2 -fdump-tree-optimized" }
3
4
function
Opt53
(
Val
,
Max
:
Positive
)
return
Positive
is
5
begin
6
if
Val
>=
Max
then
7
return
Max
;
8
end if
;
9
return
Val
+
1
;
10
end
;
11
12
-- { dg-final { scan-tree-dump-not "gnat_rcheck" "optimized" } }