Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" } */
}