summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_110.c
blob: 3d3fc69a5b96eb57ea7e7fbfee460d4c71690caf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*	$NetBSD: msg_110.c,v 1.4 2023/07/07 19:45:22 rillig Exp $	*/
# 3 "msg_110.c"

// Test for message: pointer to function is not allowed here [110]

/* lint1-extra-flags: -X 351 */

/* ARGSUSED */
void
call_take(int (*ptr)(int))
{
	/* expect+1: error: pointer to function is not allowed here [110] */
	ptr++;

	/* expect+1: error: pointer to function is not allowed here [110] */
	ptr + 1;
}