xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_110.c (revision 3117ece4fc4a4ca4489ba793710b60b0d26bab6c)
1 /*	$NetBSD: msg_110.c,v 1.4 2023/07/07 19:45:22 rillig Exp $	*/
2 # 3 "msg_110.c"
3 
4 // Test for message: pointer to function is not allowed here [110]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 /* ARGSUSED */
9 void
10 call_take(int (*ptr)(int))
11 {
12 	/* expect+1: error: pointer to function is not allowed here [110] */
13 	ptr++;
14 
15 	/* expect+1: error: pointer to function is not allowed here [110] */
16 	ptr + 1;
17 }
18