Home | History | Annotate | Line # | Download | only in lint1
      1 /*	$NetBSD: msg_092.c,v 1.7 2024/01/28 08:17:27 rillig Exp $	*/
      2 # 3 "msg_092.c"
      3 
      4 // Test for message: inconsistent redeclaration of static '%s' [92]
      5 
      6 /* lint1-extra-flags: -X 351 */
      7 
      8 static int
      9 random(void)
     10 {
     11 	return 4;
     12 }
     13 
     14 void
     15 use_random(void)
     16 {
     17 	random();
     18 
     19 	/* expect+3: warning: dubious static function 'random' at block level [93] */
     20 	/* expect+2: warning: inconsistent redeclaration of static 'random' [92] */
     21 	/* expect+1: warning: 'random' unused in function 'use_random' [192] */
     22 	static double random(void);
     23 }
     24