1 /*        $NetBSD: msg_058.c,v 1.7 2025/01/03 03:14:47 rillig Exp $   */
2 # 3 "msg_058.c"
3 
4 // Test for message: type of '%s' does not match prototype [58]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 int function(int, char, const char *);
9 
10 int
11 /* expect+1: warning: function definition for 'function' with identifier list is obsolete in C23 [384] */
function(i,dbl,str)12 function(i, dbl, str)
13           int i;
14           double dbl;
15           const char *str;
16 /* expect+1: error: type of 'dbl' does not match prototype [58] */
17 {
18           return i + (int)dbl + str[0];
19 }
20