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

// Test for message: declared argument '%s' is missing [53]

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

/* expect+2: error: old-style declaration; add 'int' [1] */
oldstyle(argument)
	int argument;
	/* expect+1: error: declared argument 'extra_argument' is missing [53] */
	int extra_argument;
{
	return argument;
}