msg_092.c revision 1.5 1 /* $NetBSD: msg_092.c,v 1.5 2023/07/07 06:03:31 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+3: warning: 'random' unused in function 'use_random' [192] */
18 /* expect+2: warning: dubious static function 'random' at block level [93] */
19 /* expect+1: warning: inconsistent redeclaration of static 'random' [92] */
20 static double random(void);
21 }
22