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

12 lines
284 B
C

/* 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" } */
{
}