1 2 3 4 5 6 7
/* { dg-do compile } */ /* { dg-options "-Wvla" } */ void func (int i) { int array[i]; /* { dg-warning "variable length array 'array' is used" } */ }