Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
vla11.C
blob: 9e0f203649a6ff381dbf9ef62a7f4abb0b1c52c6 [
file
] [
log
] [
blame
]
// Test that auto works with VLAs.
// { dg-do compile { target c++11 } }
// { dg-options "-Wno-vla" }
// { dg-require-effective-target alloca }
void
bar
(
int
n
)
{
float
loc2
[
n
];
auto
&&
range
=
loc2
;
}