Daily bump.
[official-gcc.git] / gcc / testsuite / g++.dg / ext / vla15.C
blobbce4d7b0af709f70d90dc43c171375a2c0d6f84e
1 // PR c++/44613
2 // { dg-do run }
3 // { dg-options "" }
4 // { dg-require-effective-target alloca }
6 typedef int int32_t __attribute__((mode (__SI__)));
8 void *volatile p;
10 int
11 main (void)
13   int32_t n = 0;
14  lab:;
15   int x[n % 1000 + 1];
16   x[0] = 1;
17   x[n % 1000] = 2;
18   p = x;
19   n++;
20   if (n < 1000000)
21     goto lab;
22   return 0;