OSDN Git Service

Fix misapplied patch.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / 20030125-1.c
1  int count;
2
3  int func(int *valp) {
4    int val, locked = 0;
5
6    while ((val = *valp) != 0) {
7      if (count) {
8        if (count)
9          locked = 1;
10        else
11          locked = 1;
12
13      if (!locked)
14        continue;
15      }
16
17      if (!count)
18        count--;
19
20      break;
21    }
22
23    return val;
24  }