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

// Test for message: static '%s' hides external declaration [87]

/* lint1-flags: -g -h -S -w -X 351 */

extern int counter;

int
count(void)
{
	/* expect+1: warning: static 'counter' hides external declaration [87] */
	static int counter;
	return counter++;
}