Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
vla6.C
blob: 687e0bcf2902038a5dc60f4d552227ddd410336b [
file
] [
log
] [
blame
]
// PR c++/28879
// { dg-options "" }
// { dg-require-effective-target alloca }
struct
A
{
int
i
;
A
():
i
(
1
)
{}
};
template
<int>
void
foo
()
{
int
x
[
A
().
i
];
}
void
f
()
{
foo
<
1
>();
}