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