xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_236.c (revision 94cf3147e28a1fb06818e1fa00288821d58ea020)
1 /*	$NetBSD: msg_236.c,v 1.7 2024/09/28 16:09:23 rillig Exp $	*/
2 # 3 "msg_236.c"
3 
4 // Test for message: static function '%s' unused [236]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 void
9 external_function(void)
10 {
11 }
12 
13 /* expect+2: warning: static function 'static_function' unused [236] */
14 static void
15 static_function(void)
16 {
17 }
18 
19 static inline void
20 inline_function(void)
21 {
22 }
23 
24 __attribute__((__constructor__))
25 static void
26 constructor_function(void)
27 {
28 }
29