summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/990604-1.c
blob: 4e23a8ea880d9c37cce164c4067c14678ee791d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
int b;
void f ()
{
  int i = 0;
  if (b == 0)
    do {
      b = i;
      i++;
    } while (i < 10);
}

int main ()
{
  f ();
  if (b != 9)
    abort ();
  return 0;
}