2008-03-21 Janne Blomqvist <jb@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / 20050702-1.c
blobce151d36131a73023213ac962377e81b3870169d
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* We going into an infinite loop in fold because we
4 were mishandling the return value of
5 fold_to_nonsharp_ineq_using_bound. */
6 _Bool f();
7 void g(int);
8 void h (int old_size)
10 int new_size = old_size, i;
11 g(old_size - 1);
12 i = 0;
13 while (i < old_size - 1)
15 if (f())
17 i++;
18 continue;
20 while (i < old_size - 1)
21 i++;
23 g(new_size);