aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c11-unproto-3.c
blob: b0e4bf3d5b1b032a197d38e4613540e7d028c34c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* 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");