xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_086.c (revision 9fb66d812c00ebfb445c0b47dea128f32aa6fe96)
1 /*	$NetBSD: msg_086.c,v 1.3 2021/01/31 11:12:07 rillig Exp $	*/
2 # 3 "msg_086.c"
3 
4 // Test for message: automatic hides external declaration: %s [86]
5 
6 /* lint1-flags: -S -g -h -w */
7 
8 extern int identifier;
9 
10 int
11 local_auto(void)
12 {
13 	int identifier = 3;	/* expect: 86 */
14 	return identifier;
15 }
16 
17 /* XXX: the function argument does not trigger the warning. */
18 int
19 arg_auto(int identifier)
20 {
21 	return identifier;
22 }
23