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 debug/66535
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
loop_optimization6.adb
blob
7a0f6d38803fed3967cb7c812f4ee478cff72fac
1
-- { dg-do compile }
2
-- { dg-options "-O2 -gnatp -fdump-tree-optimized" }
3
4
package body
Loop_Optimization6
is
5
procedure
Foo
is
6
begin
7
for
I
in
1
..
1
_000_000
loop
8
A
:=
A
+
1
;
9
end loop
;
10
end
Foo
;
11
12
procedure
Bar
is
13
begin
14
for
J
in
1
..
1
_000
loop
15
Foo
;
16
end loop
;
17
end
Bar
;
18
19
procedure
Main
is
20
begin
21
Bar
;
22
end
;
23
end
Loop_Optimization6
;
24
25
-- { dg-final { scan-tree-dump-not "goto" "optimized"} }