summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_107.c
blob: ec5438dec914c19ee9f14275d63d94578465e5a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*	$NetBSD: msg_107.c,v 1.6 2023/07/07 19:45:22 rillig Exp $	*/
# 3 "msg_107.c"

// Test for message: operands of '%s' have incompatible types '%s' and '%s' [107]

/* lint1-extra-flags: -X 351 */

/* ARGSUSED */
void
compare(double d, void *ptr)
{
	/* expect+1: error: operands of '==' have incompatible types 'double' and 'pointer to void' [107] */
	return d == ptr;
}