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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
vla15.C
blob
bce4d7b0af709f70d90dc43c171375a2c0d6f84e
1
// PR c++/44613
2
// { dg-do run }
3
// { dg-options "" }
4
// { dg-require-effective-target alloca }
5
6
typedef int int32_t __attribute__((mode (__SI__)));
7
8
void *volatile p;
9
10
int
11
main (void)
12
{
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;
23
}