Home | History | Annotate | Line # | Download | only in lint1
msg_095.c revision 1.6
      1 /*	$NetBSD: msg_095.c,v 1.6 2023/03/28 14:44:34 rillig Exp $	*/
      2 # 3 "msg_095.c"
      3 
      4 // Test for message: declaration of '%s' hides earlier one [95]
      5 
      6 /* lint1-flags: -ghSw -X 351 */
      7 
      8 int identifier;
      9 
     10 int
     11 example(int identifier)
     12 {
     13 
     14 	{
     15 		/* expect+1: warning: declaration of 'identifier' hides earlier one [95] */
     16 		int identifier = 3;
     17 	}
     18 
     19 	return identifier;
     20 }
     21