xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_290.c (revision e6298b924c5ba98f3a22919b56dab04a87cdbb1c)
1 /*	$NetBSD: msg_290.c,v 1.5 2023/07/07 19:45:22 rillig Exp $	*/
2 # 3 "msg_290.c"
3 
4 // Test for message: static function '%s' declared but not defined [290]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 /* expect+1: warning: static function 'only_declared' declared but not defined [290] */
9 static void only_declared(void);
10 static void declared_and_called(void);
11 
12 void
use_function(void)13 use_function(void)
14 {
15 	/* expect+1: error: static function 'declared_and_called' called but not defined [225] */
16 	declared_and_called();
17 }
18