Debian Codegraph @

gcc/testsuite/gcc.dg/noncompile/old-style-parm-1.c

raw
1 /* Test that stray semicolon in old-style parameters is not
2 accepted. */
3 /* Origin: Joseph Myers <[email protected]> */
4 /* { dg-do compile } */
5 /* { dg-options "-Wno-old-style-definition" } */
6
7 void
8 f(a)
9 int a;; /* { dg-error "parse error|syntax error|expected declaration specifiers" } */
10 {
11 }