xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_064.c (revision 039b010016da489b3c993f4814255a8bc72125df)
1 /*	$NetBSD: msg_064.c,v 1.4 2023/08/02 18:51:25 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 parameters.
12  */
13 function typedef_function {
14 	/* expect-1: error: ()-less function definition [64] */
15 }
16