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
blob8acc65d116f0d12115834c1df5e1573e5146c90b
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 } */
6 __inline__ int tag() { return 0; }
8 void f ();
10 int main() {
11 int i;
12 for (i = 0; i < (tag() ? 2 : 1); i++)
13 f();
14 abort ();
17 void f ()
19 exit (0);