summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20000605-3.c
blob: 7ebb27fdb780f8e0c8a2ff9f4e52ccc7d50d8510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
struct F { int x; int y; };

int main()
{
  int timeout = 0;
  int x = 0;
  while (1)
    {
      const struct F i = { x++, };
      if (i.x > 0)
	break;
      if (++timeout > 5)
	goto die;
    }
  return 0;
 die:
  abort ();
}