xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_029.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_029.c,v 1.5 2022/06/19 11:50:42 rillig Exp $	*/
2 # 3 "msg_029.c"
3 
4 // Test for message: '%s' was previously declared extern, becomes static [29]
5 
6 extern int function(void);
7 
8 static int function(void)
9 /* expect+1: warning: 'function' was previously declared extern, becomes static [29] */
10 {
11 	return function();
12 }
13