msg_126.c revision 1.6
11.6Srillig/* $NetBSD: msg_126.c,v 1.6 2022/06/16 16:58:36 rillig Exp $ */ 21.1Srillig# 3 "msg_126.c" 31.1Srillig 41.4Srillig// Test for message: incompatible types '%s' and '%s' in conditional [126] 51.1Srillig 61.6Srillig/* ARGSUSED */ 71.2Srilligint 81.6Srilligmax(int cond, void *ptr, double dbl) 91.2Srillig{ 101.6Srillig /* expect+2: error: incompatible types 'pointer to void' and 'double' in conditional [126] */ 111.6Srillig /* expect+1: warning: function 'max' expects to return value [214] */ 121.6Srillig return cond ? ptr : dbl; 131.2Srillig} 14