repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
vla15.C
blob
77436cb58f31afa1c19369f798adc5d86547c589
1
// PR c++/44613
2
// { dg-do run }
3
// { dg-options "" }
4
// { dg-require-effective-target alloca }
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
}