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