xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_064.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_064.c,v 1.3 2021/07/12 18:00:36 rillig Exp $	*/
2 # 3 "msg_064.c"
3 
4 // Test for message: ()-less function definition [64]
5 
6 typedef int (function)(void);
7 
8 /*
9  * Even though typedef_function has type function, this construction is not
10  * allowed.  A function definition must always look like a function
11  * definition, and that includes the parentheses for the arguments or
12  * parameters.
13  */
14 function typedef_function {
15 	/* expect-1: error: ()-less function definition [64] */
16 }
17