* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git] / gcc / testsuite / g++.dg / ext / vla15.C
blobfeeb49ff2803127694528cfc8c00a65644a095b4
1 // PR c++/44613
2 // { dg-do run }
3 // { dg-options "" }
5 void *volatile p;
7 int
8 main (void)
10   int n = 0;
11  lab:;
12   int x[n % 1000 + 1];
13   x[0] = 1;
14   x[n % 1000] = 2;
15   p = x;
16   n++;
17   if (n < 1000000)
18     goto lab;
19   return 0;