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'" } */
}