Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/20050702-1.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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) | |
9 { | |
10 int new_size = old_size, i; | |
11 g(old_size - 1); | |
12 i = 0; | |
13 while (i < old_size - 1) | |
14 { | |
15 if (f()) | |
16 { | |
17 i++; | |
18 continue; | |
19 } | |
20 while (i < old_size - 1) | |
21 i++; | |
22 } | |
23 g(new_size); | |
24 } |