blob: b0e4bf3d5b1b032a197d38e4613540e7d028c34c [file] [log] [blame]
/* Test function declarations without prototypes for C11. */
/* { dg-do compile } */
/* { dg-options "-std=c11 -pedantic-errors" } */
void f1 ();
void
f1a (void)
{
f1 (1, 2);
}
void f2 ();
void f2 (int);
void f3 ();
_Static_assert (_Generic (f3,
void (*) (int) : 1,
default : 3) == 1, "unprototyped test");