xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_029.c (revision b2baa50111d645353fa30b4deab0f79d93650c8c)
1 /*	$NetBSD: msg_029.c,v 1.6 2023/03/28 14:44:34 rillig Exp $	*/
2 # 3 "msg_029.c"
3 
4 // Test for message: '%s' was previously declared extern, becomes static [29]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 extern int function(void);
9 
function(void)10 static int function(void)
11 /* expect+1: warning: 'function' was previously declared extern, becomes static [29] */
12 {
13 	return function();
14 }
15