(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
warn/
Wvla-2.C
/* { 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'" } */
}