diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/wvla-7.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/wvla-7.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/wvla-7.c b/gcc/testsuite/gcc.dg/wvla-7.c new file mode 100644 index 000000000..4c264f0d8 --- /dev/null +++ b/gcc/testsuite/gcc.dg/wvla-7.c @@ -0,0 +1,5 @@ +/* { dg-do compile } */ +/* { dg-options "-pedantic-errors -std=c89 -Wvla" } */ + +extern void +func (int i, int [i]); /* { dg-error "ISO C90 forbids variable" } */ |