diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/noncompile/undeclared-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/noncompile/undeclared-2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/noncompile/undeclared-2.c b/gcc/testsuite/gcc.dg/noncompile/undeclared-2.c new file mode 100644 index 000000000..36cd0eaf1 --- /dev/null +++ b/gcc/testsuite/gcc.dg/noncompile/undeclared-2.c @@ -0,0 +1,3 @@ +/* Invalid, but should not ICE. PRs 11944, 14734. */ + +void foo(const int[i]); /* { dg-error "undeclared|for each" } */ |