summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_127.c
blob: 975a78a1958c9f635a50ec40bbc7aa5cbf5e490f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*	$NetBSD: msg_127.c,v 1.4 2022/06/16 16:58:36 rillig Exp $	*/
# 3 "msg_127.c"

/* Test for message: '&' before array or function: ignored [127] */

/* lint1-extra-flags: -t */

void
example()
{
	/* expect+1: warning: '&' before array or function: ignored [127] */
	if (&example != (void *)0)
		return;
}