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