Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/20050702-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2" } */ /* We going into an infinite loop in fold because we were mishandling the return value of fold_to_nonsharp_ineq_using_bound. */ _Bool f(); void g(int); void h (int old_size) { int new_size = old_size, i; g(old_size - 1); i = 0; while (i < old_size - 1) { if (f()) { i++; continue; } while (i < old_size - 1) i++; } g(new_size); }