OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* gcc.dg/loop-2.c: Replace "inline" with "__inline__".
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
loop-2.c
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
}