summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/noncompile/old-style-parm-1.c
blob: 5f879c3f0aed277b4083471802326efa5c3d3f14 (plain)
1
2
3
4
5
6
7
8
9
10
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" } */
{
}