Home | History | Annotate | Line # | Download | only in lint1
msg_086.c revision 1.2
      1 /*	$NetBSD: msg_086.c,v 1.2 2021/01/03 15:35:00 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;
     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