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
svn merge -r102224:107263 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branch
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
loop-2.c
blob
8acc65d116f0d12115834c1df5e1573e5146c90b
1
/* PR optimization/10171 */
2
/* Bug: unroll_loop misoptimized the function so that we got
3
0 iterations of the loop rather than the correct 1. */
4
/* { dg-do run } */
5
6
__inline__
int
tag
() {
return
0
; }
7
8
void
f
();
9
10
int
main
() {
11
int
i
;
12
for
(
i
=
0
;
i
< (
tag
() ?
2
:
1
);
i
++)
13
f
();
14
abort
();
15
}
16
17
void
f
()
18
{
19
exit
(
0
);
20
}