Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / wvla-3.c
blob45132fa6b1852517868d87e70a1b510a86e15265
1 /* { dg-do compile } */
2 /* { dg-options "-pedantic-errors -std=c89 -Wvla" } */
4 extern void
5 func (int i, int array[i]); /* { dg-error "ISO C90 forbids variable.* array 'array'" } */