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

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