msg_058.c revision 1.7
11.7Srillig/*	$NetBSD: msg_058.c,v 1.7 2025/01/03 03:14:47 rillig Exp $	*/
21.1Srillig# 3 "msg_058.c"
31.1Srillig
41.4Srillig// Test for message: type of '%s' does not match prototype [58]
51.1Srillig
61.5Srillig/* lint1-extra-flags: -X 351 */
71.5Srillig
81.3Srilligint function(int, char, const char *);
91.3Srillig
101.3Srilligint
111.7Srillig/* expect+1: warning: function definition for 'function' with identifier list is obsolete in C23 [384] */
121.3Srilligfunction(i, dbl, str)
131.3Srillig	int i;
141.3Srillig	double dbl;
151.3Srillig	const char *str;
161.4Srillig/* expect+1: error: type of 'dbl' does not match prototype [58] */
171.3Srillig{
181.3Srillig	return i + (int)dbl + str[0];
191.3Srillig}
20