Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wvla-2.C
blob: 02092b809cb600890f840b64937b5984d67dc5e0 [
file
] [
log
] [
blame
]
/* { dg-do compile { target { ! c++14 } } } */
/* { dg-options "-pedantic-errors -Wvla" } */
void
func
(
int
i
)
{
int
array
[
i
];
/* { dg-error "7:ISO C.* forbids variable.* array 'array'" } */
}