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

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