xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_091.c (revision 40a9b8fdca25e3f10c88ea8f4be5b0230d5210d6)
1 /*	$NetBSD: msg_091.c,v 1.5 2022/06/22 19:23:18 rillig Exp $	*/
2 # 3 "msg_091.c"
3 
4 /* Test for message: declaration of '%s' hides parameter [91] */
5 
6 /* lint1-flags: -htw */
7 
add(a,b)8 add(a, b)
9 	int a, b;
10 {
11 	/* expect+1: warning: declaration of 'a' hides parameter [91] */
12 	int a;
13 
14 	/* expect+1: warning: 'a' may be used before set [158] */
15 	return a + b;
16 }
17