/* $NetBSD: msg_126.c,v 1.7 2023/07/07 19:45:22 rillig Exp $ */ # 3 "msg_126.c" // Test for message: incompatible types '%s' and '%s' in conditional [126] /* lint1-extra-flags: -X 351 */ /* ARGSUSED */ int max(int cond, void *ptr, double dbl) { /* expect+2: error: incompatible types 'pointer to void' and 'double' in conditional [126] */ /* expect+1: warning: function 'max' expects to return value [214] */ return cond ? ptr : dbl; }