PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20040811-1.c
blobf7a4de93dbff8c112cfd1828596bbef4551160be
1 /* { dg-require-effective-target int32plus } */
2 /* { dg-require-effective-target alloca } */
4 /* Ensure that we deallocate X when branching back before its
5 declaration. */
7 void *volatile p;
9 int
10 main (void)
12 int n = 0;
13 lab:;
14 int x[n % 1000 + 1];
15 x[0] = 1;
16 x[n % 1000] = 2;
17 p = x;
18 n++;
19 if (n < 1000000)
20 goto lab;
21 return 0;