blob: df479d0b0bc758400aefd5ed09775f4b43c32553 (
plain)
1
2
3
4
5
6
7
|
/* { dg-do compile { target { ! c++1y } } } */
/* { dg-options "-pedantic-errors -Wvla" } */
void func (int i)
{
int array[i]; /* { dg-error "ISO C.* forbids variable.* array 'array'" } */
}
|