xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_107.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_107.c,v 1.4 2022/06/19 12:14:34 rillig Exp $	*/
2 # 3 "msg_107.c"
3 
4 // Test for message: operands of '%s' have incompatible types '%s' and '%s' [107]
5 
6 /* ARGSUSED */
7 void
8 compare(double d, void *ptr)
9 {
10 	/* expect+1: error: operands of '==' have incompatible types 'double' and 'pointer' [107] */
11 	return d == ptr;
12 }
13