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
/
vla6.C
blob
687e0bcf2902038a5dc60f4d552227ddd410336b
1
// PR c++/28879
2
// { dg-options "" }
3
// { dg-require-effective-target alloca }
4
5
struct A
6
{
7
int i;
8
A(): i(1) {}
9
};
10
11
template<int> void foo()
12
{
13
int x[A().i];
14
}
15
16
void f()
17
{
18
foo<1>();
19
}