xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_058.c (revision d16b7486a53dcb8072b60ec6fcb4373a2d0c27b7)
1 /*	$NetBSD: msg_058.c,v 1.5 2023/03/28 14:44:34 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 function(i, dbl, str)
12 	int i;
13 	double dbl;
14 	const char *str;
15 /* expect+1: error: type of 'dbl' does not match prototype [58] */
16 {
17 	return i + (int)dbl + str[0];
18 }
19