xref: /netbsd-src/tests/usr.bin/xlint/lint2/msg_001.ln (revision d536862b7d93d77932ef5de7eebdc48d76921b77)
1# $NetBSD: msg_001.ln,v 1.4 2021/08/24 23:38:51 rillig Exp $
2#
3# Test data for message 1 of lint2:
4#	%s defined( %s ), but never used
5#
6
70 s msg_001.c
8S msg_001.c
9
103 c 0.3 p1 i 16used_not_defined f2 I D I
112 d 0.2 d o 16defined_not_used f0 I
12
13# The function 'main' always counts as used.
14# int main(void) {}
1510 d 0.10 d 4main F0 I
16# extern main() {}
1712 d 0.12 e 4main F I
18
19# If a function is declared once in old style and once with prototype,
20# the prototype definition is preferred; see chkname.
21#
22# extern merge_old_style_and_prototype();
2320 d 0.20 e 29merge_old_style_and_prototype F I
24# extern int merge_old_style_and_prototype(char *);
2521 d 0.21 e 29merge_old_style_and_prototype F1 PCI
26