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

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