xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_127.c (revision ccd9df534e375a4366c5b55f23782053c7a98d82)
1 /*	$NetBSD: msg_127.c,v 1.4 2022/06/16 16:58:36 rillig Exp $	*/
2 # 3 "msg_127.c"
3 
4 /* Test for message: '&' before array or function: ignored [127] */
5 
6 /* lint1-extra-flags: -t */
7 
8 void
9 example()
10 {
11 	/* expect+1: warning: '&' before array or function: ignored [127] */
12 	if (&example != (void *)0)
13 		return;
14 }
15