xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_001_c90.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_001_c90.c,v 1.2 2022/10/01 09:42:40 rillig Exp $	*/
2 # 3 "msg_001_c90.c"
3 
4 /*
5  * Test for message: old-style declaration; add 'int' [1]
6  *
7  * In strict C90 mode, an old-style declaration is an error, not merely a
8  * warning.
9  */
10 
11 /* lint1-flags: -s */
12 
13 /* expect+1: error: old-style declaration; add 'int' [1] */
14 implicit_global_variable;
15