xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_092.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_092.c,v 1.4 2022/06/21 21:18:30 rillig Exp $	*/
2 # 3 "msg_092.c"
3 
4 // Test for message: inconsistent redeclaration of static '%s' [92]
5 
6 static int
7 random(void)
8 {
9 	return 4;
10 }
11 
12 void
13 use_random(void)
14 {
15 	random();
16 
17 	/* expect+2: warning: dubious static function 'random' at block level [93] */
18 	/* expect+1: warning: inconsistent redeclaration of static 'random' [92] */
19 	static double random(void);
20 }
21