summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_032.c
blob: 2a2b3bfdd0361fc57e438c50cc53c93cd7725118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*	$NetBSD: msg_032.c,v 1.7 2023/07/07 19:45:22 rillig Exp $	*/
# 3 "msg_032.c"

// Test for message: type of argument '%s' defaults to 'int' [32]

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

/* expect+5: error: old-style declaration; add 'int' [1] */
add(a, b, c)
/* expect+3: warning: type of argument 'a' defaults to 'int' [32] */
/* expect+2: warning: type of argument 'b' defaults to 'int' [32] */
/* expect+1: warning: type of argument 'c' defaults to 'int' [32] */
{
	return a + b + c;
}