Super User's BSD Cross Reference: /NetBSD/tests/usr.bin/xlint/lint1/msg_225.c

1 /* $NetBSD: msg_225.c,v 1.5 2023年07月07日 19:45:22 rillig Exp $ */
2# 3 "msg_225.c"
3
4 // Test for message: static function '%s' called but not defined [225]
5
6 /* lint1-extra-flags: -X 351 */
7
8 static void undefined(void);
9
10 static void defined_later(void);
11
12 void
13 caller(void)
14{
15 /* expect+1: error: static function 'undefined' called but not defined [225] */
16 undefined();
17 defined_later();
18}
19
20 static void
21 defined_later(void)
22{
23}
24 

AltStyle によって変換されたページ (->オリジナル) /