xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_107.c (revision 867d70fc718005c0918b8b8b2f9d7f2d52d0a0db)
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