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
/
pure_function3b.adb
blob
97e19fcd2e46ebad52ab9f24c69d537f4605c05a
1
-- { dg-do compile }
2
-- { dg-options "-O -gnatws -fdump-tree-optimized" }
3
4
with
Pure_Function3_Pkg
;
use
Pure_Function3_Pkg
;
5
6
procedure
Pure_Function3b
is
7
V
:
T
;
8
begin
9
if
F
(
V
) =
1
then
10
raise
Program_Error
;
11
end if
;
12
Set
(
V
);
13
if
F
(
V
) =
2
then
14
raise
Program_Error
;
15
end if
;
16
end
;
17
18
-- { dg-final { scan-tree-dump-times "pure_function3_pkg.f" 2 "optimized" } }