summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_001_c90.c
blob: ff7f389b73ad57622ddf54fa1c76ccc4afd6da42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*	$NetBSD: msg_001_c90.c,v 1.3 2023/03/28 14:44:34 rillig Exp $	*/
# 3 "msg_001_c90.c"

/*
 * Test for message: old-style declaration; add 'int' [1]
 *
 * In strict C90 mode, an old-style declaration is an error, not merely a
 * warning.
 */

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

/* expect+1: error: old-style declaration; add 'int' [1] */
implicit_global_variable;