Debian Codegraph @

gcc/testsuite/g++.dg/ext/vla15.C

raw
1 // PR c++/44613
2 // { dg-do run }
3 // { dg-options "" }
4
5 typedef int int32_t __attribute__((mode (__SI__)));
6
7 void *volatile p;
8
9 int
10 main (void)
11 {
12 int32_t 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;
22 }