xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_001_c90.c (revision b2baa50111d645353fa30b4deab0f79d93650c8c)
1 /*	$NetBSD: msg_001_c90.c,v 1.3 2023/03/28 14:44:34 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 -X 351 */
12 
13 /* expect+1: error: old-style declaration; add 'int' [1] */
14 implicit_global_variable;
15