diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/noncompile/old-style-parm-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/noncompile/old-style-parm-1.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/noncompile/old-style-parm-1.c b/gcc/testsuite/gcc.dg/noncompile/old-style-parm-1.c new file mode 100644 index 000000000..5f879c3f0 --- /dev/null +++ b/gcc/testsuite/gcc.dg/noncompile/old-style-parm-1.c @@ -0,0 +1,11 @@ +/* Test that stray semicolon in old-style parameters is not + accepted. */ +/* Origin: Joseph Myers <joseph@codesourcery.com> */ +/* { dg-do compile } */ +/* { dg-options "" } */ + +void +f(a) + int a;; /* { dg-error "parse error|syntax error|expected declaration specifiers" } */ +{ +} |