Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wvla-1.C
blob: 95e452dfc700af6f796d637955625e9a001f6788 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-Wvla" } */
/* { dg-require-effective-target alloca } */
void
func
(
int
i
)
{
int
array
[
i
];
/* { dg-warning "7:variable length array 'array' is used" } */
}