PR middle-end/30262
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20040811-1.c
blob62f377a2f24567096d5f32f77f1450cb15508327
1 /* Ensure that we deallocate X when branching back before its
2 declaration. */
4 void *volatile p;
6 int
7 main (void)
9 int n = 0;
10 lab:;
11 int x[n % 1000 + 1];
12 x[0] = 1;
13 x[n % 1000] = 2;
14 p = x;
15 n++;
16 if (n < 1000000)
17 goto lab;
18 return 0;