gcc/gcc/testsuite/gcc.dg/Wvla-1.c

6 lines
173 B
C

/* { 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'" } */