summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_058.c
blob: d8780319ef77e194d4c55d6af5dc822da075b26c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*	$NetBSD: msg_058.c,v 1.5 2023/03/28 14:44:34 rillig Exp $	*/
# 3 "msg_058.c"

// Test for message: type of '%s' does not match prototype [58]

/* lint1-extra-flags: -X 351 */

int function(int, char, const char *);

int
function(i, dbl, str)
	int i;
	double dbl;
	const char *str;
/* expect+1: error: type of 'dbl' does not match prototype [58] */
{
	return i + (int)dbl + str[0];
}