1 /* $NetBSD: msg_001.c,v 1.9 2023/03/28 14:44:34 rillig Exp $ */
2 # 3 "msg_001.c"
3
4 // Test for message: old-style declaration; add 'int' [1]
5
6 /* lint1-extra-flags: -X 351 */
7
8 /* expect+1: warning: old-style declaration; add 'int' [1] */
9 old_style = 1;
10
11 int new_style = 1;
12
13 /* expect+2: error: old-style declaration; add 'int' [1] */
14 /* expect+1: warning: static variable 'static_old_style' unused [226] */
15 static static_old_style = 1;
16
17 /* expect+1: warning: static variable 'static_new_style' unused [226] */
18 static int static_new_style = 1;
19
20 /* expect+2: error: old-style declaration; add 'int' [1] */
extern_implicit_int(void)21 extern_implicit_int(void)
22 {
23 }
24
25 /* expect+4: error: old-style declaration; add 'int' [1] */
26 /* expect+2: warning: static function 'static_implicit_int' unused [236] */
27 static
static_implicit_int(void)28 static_implicit_int(void)
29 {
30 }
31