blob: 40ad2307e960bc168e729c8e23d46439dc783b06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* $NetBSD: msg_086.c,v 1.6 2023/03/28 14:44:34 rillig Exp $ */
# 3 "msg_086.c"
// Test for message: automatic '%s' hides external declaration [86]
/* lint1-flags: -S -g -h -w -X 351 */
extern int identifier;
int
local_auto(void)
{
/* expect+1: warning: automatic 'identifier' hides external declaration [86] */
int identifier = 3;
return identifier;
}
/* XXX: the function argument does not trigger the warning. */
int
arg_auto(int identifier)
{
return identifier;
}
|