msg_126.c revision 1.6
1/*	$NetBSD: msg_126.c,v 1.6 2022/06/16 16:58:36 rillig Exp $	*/
2# 3 "msg_126.c"
3
4// Test for message: incompatible types '%s' and '%s' in conditional [126]
5
6/* ARGSUSED */
7int
8max(int cond, void *ptr, double dbl)
9{
10	/* expect+2: error: incompatible types 'pointer to void' and 'double' in conditional [126] */
11	/* expect+1: warning: function 'max' expects to return value [214] */
12	return cond ? ptr : dbl;
13}
14