blob: 516efd00ad4a6469dddf9181f9f1bab40709e605 [file] [log] [blame]
/* Test old-style function definitions not in C23: () gives type with
a prototype. */
/* { dg-do compile } */
/* { dg-options "-std=c23" } */
void
f ()
{
}
void
g (void)
{
f (1); /* { dg-error "too many arguments to function" } */
}