diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/c11-fordecl-3.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/c11-fordecl-3.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/c11-fordecl-3.c b/gcc/testsuite/gcc.dg/c11-fordecl-3.c new file mode 100644 index 00000000000..28ef6294c20 --- /dev/null +++ b/gcc/testsuite/gcc.dg/c11-fordecl-3.c @@ -0,0 +1,6 @@ +/* Test restrictions on the kind of declarations permitted in for loops removed + in C2X, and thus with -std=c11 -pedantic -Wno-c11-c2x-compat. */ +/* { dg-do compile } */ +/* { dg-options "-std=c11 -pedantic -Wno-c11-c2x-compat" } */ + +#include "c99-fordecl-2.c" |