summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/wvla-3.c
blob: 45132fa6b1852517868d87e70a1b510a86e15265 (plain)
1
2
3
4
5
/* { dg-do compile } */
/* { dg-options "-pedantic-errors -std=c89 -Wvla" } */

extern void 
func (int i, int array[i]); /* { dg-error "ISO C90 forbids variable.* array 'array'" } */