Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/20040811-1.c

raw
1 /* { dg-require-effective-target int32plus } */
2
3 /* Ensure that we deallocate X when branching back before its
4 declaration. */
5
6 void *volatile p;
7
8 int
9 main (void)
10 {
11 int n = 0;
12 lab:;
13 int x[n % 1000 + 1];
14 x[0] = 1;
15 x[n % 1000] = 2;
16 p = x;
17 n++;
18 if (n < 1000000)
19 goto lab;
20 return 0;
21 }