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

// Test for message: function prototype parameters must have types [62]

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

/* expect+1: error: old-style declaration; add 'int' [1] */
outer() {
	/* expect+2: warning: function prototype parameters must have types [62] */
	/* expect+1: warning: dubious static function 'inner' at block level [93] */
	static int inner(a);
}