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

// Test for message: declaration of '%s' hides earlier one [95]

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

int identifier;

int
example(int identifier)
{

	{
		/* expect+1: warning: declaration of 'identifier' hides earlier one [95] */
		int identifier = 3;
	}

	return identifier;
}