Thu Jul 8 05:18:49 2021 UTC ()
tests/lint: add tests for C90 mode and malformed declarations

In the grammar, 148 lines are still uncovered by the tests.  The
untested parts are mostly obscure declarations and a few parse errors.


(rillig)
diff -r1.1077 -r1.1078 src/distrib/sets/lists/tests/mi
diff -r1.80 -r1.81 src/tests/usr.bin/xlint/lint1/Makefile
diff -r0 -r1.1 src/tests/usr.bin/xlint/lint1/msg_000_c90.c
diff -r0 -r1.1 src/tests/usr.bin/xlint/lint1/msg_000_c90.exp
diff -r0 -r1.1 src/tests/usr.bin/xlint/lint1/msg_001_c90.c
diff -r0 -r1.1 src/tests/usr.bin/xlint/lint1/msg_001_c90.exp
diff -r0 -r1.1 src/tests/usr.bin/xlint/lint1/msg_272_c90.c
diff -r0 -r1.1 src/tests/usr.bin/xlint/lint1/msg_272_c90.exp
diff -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_002.c
diff -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_072.c
diff -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_002.exp
diff -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_072.exp

cvs diff -r1.1077 -r1.1078 src/distrib/sets/lists/tests/mi (expand / switch to unified diff)

--- src/distrib/sets/lists/tests/mi 2021/07/06 17:33:07 1.1077
+++ src/distrib/sets/lists/tests/mi 2021/07/08 05:18:49 1.1078
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: mi,v 1.1077 2021/07/06 17:33:07 rillig Exp $ 1# $NetBSD: mi,v 1.1078 2021/07/08 05:18:49 rillig Exp $
2# 2#
3# Note: don't delete entries from here - mark them as "obsolete" instead. 3# Note: don't delete entries from here - mark them as "obsolete" instead.
4# 4#
5./etc/mtree/set.tests tests-sys-root 5./etc/mtree/set.tests tests-sys-root
6./usr/libdata/debug/usr/tests tests-base-debug compattestdir 6./usr/libdata/debug/usr/tests tests-base-debug compattestdir
7./usr/libdata/debug/usr/tests/atf tests-atf-debug compattestfile,atf 7./usr/libdata/debug/usr/tests/atf tests-atf-debug compattestfile,atf
8./usr/libdata/debug/usr/tests/atf/atf-c tests-atf-debug compattestfile,atf 8./usr/libdata/debug/usr/tests/atf/atf-c tests-atf-debug compattestfile,atf
9./usr/libdata/debug/usr/tests/atf/atf-c++ tests-atf-debug compattestfile,atf 9./usr/libdata/debug/usr/tests/atf/atf-c++ tests-atf-debug compattestfile,atf
10./usr/libdata/debug/usr/tests/atf/atf-c++/detail tests-atf-debug compattestfile,atf 10./usr/libdata/debug/usr/tests/atf/atf-c++/detail tests-atf-debug compattestfile,atf
11./usr/libdata/debug/usr/tests/atf/atf-c/detail tests-atf-debug compattestfile,atf 11./usr/libdata/debug/usr/tests/atf/atf-c/detail tests-atf-debug compattestfile,atf
12./usr/libdata/debug/usr/tests/atf/atf-compile tests-obsolete obsolete 12./usr/libdata/debug/usr/tests/atf/atf-compile tests-obsolete obsolete
13./usr/libdata/debug/usr/tests/atf/atf-report tests-obsolete obsolete 13./usr/libdata/debug/usr/tests/atf/atf-report tests-obsolete obsolete
14./usr/libdata/debug/usr/tests/atf/atf-run tests-obsolete obsolete 14./usr/libdata/debug/usr/tests/atf/atf-run tests-obsolete obsolete
@@ -6247,28 +6247,32 @@ @@ -6247,28 +6247,32 @@
6247./usr/tests/usr.bin/xlint/lint1/lex_floating.exp tests-usr.bin-tests compattestfile,atf 6247./usr/tests/usr.bin/xlint/lint1/lex_floating.exp tests-usr.bin-tests compattestfile,atf
6248./usr/tests/usr.bin/xlint/lint1/lex_integer.c tests-usr.bin-tests compattestfile,atf 6248./usr/tests/usr.bin/xlint/lint1/lex_integer.c tests-usr.bin-tests compattestfile,atf
6249./usr/tests/usr.bin/xlint/lint1/lex_integer.exp tests-usr.bin-tests compattestfile,atf 6249./usr/tests/usr.bin/xlint/lint1/lex_integer.exp tests-usr.bin-tests compattestfile,atf
6250./usr/tests/usr.bin/xlint/lint1/lex_integer_ilp32.c tests-usr.bin-tests compattestfile,atf 6250./usr/tests/usr.bin/xlint/lint1/lex_integer_ilp32.c tests-usr.bin-tests compattestfile,atf
6251./usr/tests/usr.bin/xlint/lint1/lex_integer_ilp32.exp tests-usr.bin-tests compattestfile,atf 6251./usr/tests/usr.bin/xlint/lint1/lex_integer_ilp32.exp tests-usr.bin-tests compattestfile,atf
6252./usr/tests/usr.bin/xlint/lint1/lex_string.c tests-usr.bin-tests compattestfile,atf 6252./usr/tests/usr.bin/xlint/lint1/lex_string.c tests-usr.bin-tests compattestfile,atf
6253./usr/tests/usr.bin/xlint/lint1/lex_string.exp tests-usr.bin-tests compattestfile,atf 6253./usr/tests/usr.bin/xlint/lint1/lex_string.exp tests-usr.bin-tests compattestfile,atf
6254./usr/tests/usr.bin/xlint/lint1/lex_wide_char.c tests-usr.bin-tests compattestfile,atf 6254./usr/tests/usr.bin/xlint/lint1/lex_wide_char.c tests-usr.bin-tests compattestfile,atf
6255./usr/tests/usr.bin/xlint/lint1/lex_wide_char.exp tests-usr.bin-tests compattestfile,atf 6255./usr/tests/usr.bin/xlint/lint1/lex_wide_char.exp tests-usr.bin-tests compattestfile,atf
6256./usr/tests/usr.bin/xlint/lint1/lex_wide_string.c tests-usr.bin-tests compattestfile,atf 6256./usr/tests/usr.bin/xlint/lint1/lex_wide_string.c tests-usr.bin-tests compattestfile,atf
6257./usr/tests/usr.bin/xlint/lint1/lex_wide_string.exp tests-usr.bin-tests compattestfile,atf 6257./usr/tests/usr.bin/xlint/lint1/lex_wide_string.exp tests-usr.bin-tests compattestfile,atf
6258./usr/tests/usr.bin/xlint/lint1/msg_000.c tests-usr.bin-tests compattestfile,atf 6258./usr/tests/usr.bin/xlint/lint1/msg_000.c tests-usr.bin-tests compattestfile,atf
6259./usr/tests/usr.bin/xlint/lint1/msg_000.exp tests-usr.bin-tests compattestfile,atf 6259./usr/tests/usr.bin/xlint/lint1/msg_000.exp tests-usr.bin-tests compattestfile,atf
 6260./usr/tests/usr.bin/xlint/lint1/msg_000_c90.c tests-usr.bin-tests compattestfile,atf
 6261./usr/tests/usr.bin/xlint/lint1/msg_000_c90.exp tests-usr.bin-tests compattestfile,atf
6260./usr/tests/usr.bin/xlint/lint1/msg_001.c tests-usr.bin-tests compattestfile,atf 6262./usr/tests/usr.bin/xlint/lint1/msg_001.c tests-usr.bin-tests compattestfile,atf
6261./usr/tests/usr.bin/xlint/lint1/msg_001.exp tests-usr.bin-tests compattestfile,atf 6263./usr/tests/usr.bin/xlint/lint1/msg_001.exp tests-usr.bin-tests compattestfile,atf
 6264./usr/tests/usr.bin/xlint/lint1/msg_001_c90.c tests-usr.bin-tests compattestfile,atf
 6265./usr/tests/usr.bin/xlint/lint1/msg_001_c90.exp tests-usr.bin-tests compattestfile,atf
6262./usr/tests/usr.bin/xlint/lint1/msg_002.c tests-usr.bin-tests compattestfile,atf 6266./usr/tests/usr.bin/xlint/lint1/msg_002.c tests-usr.bin-tests compattestfile,atf
6263./usr/tests/usr.bin/xlint/lint1/msg_002.exp tests-usr.bin-tests compattestfile,atf 6267./usr/tests/usr.bin/xlint/lint1/msg_002.exp tests-usr.bin-tests compattestfile,atf
6264./usr/tests/usr.bin/xlint/lint1/msg_003.c tests-usr.bin-tests compattestfile,atf 6268./usr/tests/usr.bin/xlint/lint1/msg_003.c tests-usr.bin-tests compattestfile,atf
6265./usr/tests/usr.bin/xlint/lint1/msg_003.exp tests-usr.bin-tests compattestfile,atf 6269./usr/tests/usr.bin/xlint/lint1/msg_003.exp tests-usr.bin-tests compattestfile,atf
6266./usr/tests/usr.bin/xlint/lint1/msg_004.c tests-usr.bin-tests compattestfile,atf 6270./usr/tests/usr.bin/xlint/lint1/msg_004.c tests-usr.bin-tests compattestfile,atf
6267./usr/tests/usr.bin/xlint/lint1/msg_004.exp tests-usr.bin-tests compattestfile,atf 6271./usr/tests/usr.bin/xlint/lint1/msg_004.exp tests-usr.bin-tests compattestfile,atf
6268./usr/tests/usr.bin/xlint/lint1/msg_005.c tests-usr.bin-tests compattestfile,atf 6272./usr/tests/usr.bin/xlint/lint1/msg_005.c tests-usr.bin-tests compattestfile,atf
6269./usr/tests/usr.bin/xlint/lint1/msg_005.exp tests-usr.bin-tests compattestfile,atf 6273./usr/tests/usr.bin/xlint/lint1/msg_005.exp tests-usr.bin-tests compattestfile,atf
6270./usr/tests/usr.bin/xlint/lint1/msg_006.c tests-usr.bin-tests compattestfile,atf 6274./usr/tests/usr.bin/xlint/lint1/msg_006.c tests-usr.bin-tests compattestfile,atf
6271./usr/tests/usr.bin/xlint/lint1/msg_006.exp tests-usr.bin-tests compattestfile,atf 6275./usr/tests/usr.bin/xlint/lint1/msg_006.exp tests-usr.bin-tests compattestfile,atf
6272./usr/tests/usr.bin/xlint/lint1/msg_007.c tests-usr.bin-tests compattestfile,atf 6276./usr/tests/usr.bin/xlint/lint1/msg_007.c tests-usr.bin-tests compattestfile,atf
6273./usr/tests/usr.bin/xlint/lint1/msg_007.exp tests-usr.bin-tests compattestfile,atf 6277./usr/tests/usr.bin/xlint/lint1/msg_007.exp tests-usr.bin-tests compattestfile,atf
6274./usr/tests/usr.bin/xlint/lint1/msg_008.c tests-usr.bin-tests compattestfile,atf 6278./usr/tests/usr.bin/xlint/lint1/msg_008.c tests-usr.bin-tests compattestfile,atf
@@ -6795,26 +6799,28 @@ @@ -6795,26 +6799,28 @@
6795./usr/tests/usr.bin/xlint/lint1/msg_266.exp tests-usr.bin-tests compattestfile,atf 6799./usr/tests/usr.bin/xlint/lint1/msg_266.exp tests-usr.bin-tests compattestfile,atf
6796./usr/tests/usr.bin/xlint/lint1/msg_267.c tests-usr.bin-tests compattestfile,atf 6800./usr/tests/usr.bin/xlint/lint1/msg_267.c tests-usr.bin-tests compattestfile,atf
6797./usr/tests/usr.bin/xlint/lint1/msg_267.exp tests-usr.bin-tests compattestfile,atf 6801./usr/tests/usr.bin/xlint/lint1/msg_267.exp tests-usr.bin-tests compattestfile,atf
6798./usr/tests/usr.bin/xlint/lint1/msg_268.c tests-usr.bin-tests compattestfile,atf 6802./usr/tests/usr.bin/xlint/lint1/msg_268.c tests-usr.bin-tests compattestfile,atf
6799./usr/tests/usr.bin/xlint/lint1/msg_268.exp tests-usr.bin-tests compattestfile,atf 6803./usr/tests/usr.bin/xlint/lint1/msg_268.exp tests-usr.bin-tests compattestfile,atf
6800./usr/tests/usr.bin/xlint/lint1/msg_269.c tests-usr.bin-tests compattestfile,atf 6804./usr/tests/usr.bin/xlint/lint1/msg_269.c tests-usr.bin-tests compattestfile,atf
6801./usr/tests/usr.bin/xlint/lint1/msg_269.exp tests-usr.bin-tests compattestfile,atf 6805./usr/tests/usr.bin/xlint/lint1/msg_269.exp tests-usr.bin-tests compattestfile,atf
6802./usr/tests/usr.bin/xlint/lint1/msg_270.c tests-usr.bin-tests compattestfile,atf 6806./usr/tests/usr.bin/xlint/lint1/msg_270.c tests-usr.bin-tests compattestfile,atf
6803./usr/tests/usr.bin/xlint/lint1/msg_270.exp tests-usr.bin-tests compattestfile,atf 6807./usr/tests/usr.bin/xlint/lint1/msg_270.exp tests-usr.bin-tests compattestfile,atf
6804./usr/tests/usr.bin/xlint/lint1/msg_271.c tests-usr.bin-tests compattestfile,atf 6808./usr/tests/usr.bin/xlint/lint1/msg_271.c tests-usr.bin-tests compattestfile,atf
6805./usr/tests/usr.bin/xlint/lint1/msg_271.exp tests-usr.bin-tests compattestfile,atf 6809./usr/tests/usr.bin/xlint/lint1/msg_271.exp tests-usr.bin-tests compattestfile,atf
6806./usr/tests/usr.bin/xlint/lint1/msg_272.c tests-usr.bin-tests compattestfile,atf 6810./usr/tests/usr.bin/xlint/lint1/msg_272.c tests-usr.bin-tests compattestfile,atf
6807./usr/tests/usr.bin/xlint/lint1/msg_272.exp tests-usr.bin-tests compattestfile,atf 6811./usr/tests/usr.bin/xlint/lint1/msg_272.exp tests-usr.bin-tests compattestfile,atf
 6812./usr/tests/usr.bin/xlint/lint1/msg_272_c90.c tests-usr.bin-tests compattestfile,atf
 6813./usr/tests/usr.bin/xlint/lint1/msg_272_c90.exp tests-usr.bin-tests compattestfile,atf
6808./usr/tests/usr.bin/xlint/lint1/msg_273.c tests-usr.bin-tests compattestfile,atf 6814./usr/tests/usr.bin/xlint/lint1/msg_273.c tests-usr.bin-tests compattestfile,atf
6809./usr/tests/usr.bin/xlint/lint1/msg_273.exp tests-usr.bin-tests compattestfile,atf 6815./usr/tests/usr.bin/xlint/lint1/msg_273.exp tests-usr.bin-tests compattestfile,atf
6810./usr/tests/usr.bin/xlint/lint1/msg_274.c tests-usr.bin-tests compattestfile,atf 6816./usr/tests/usr.bin/xlint/lint1/msg_274.c tests-usr.bin-tests compattestfile,atf
6811./usr/tests/usr.bin/xlint/lint1/msg_274.exp tests-usr.bin-tests compattestfile,atf 6817./usr/tests/usr.bin/xlint/lint1/msg_274.exp tests-usr.bin-tests compattestfile,atf
6812./usr/tests/usr.bin/xlint/lint1/msg_275.c tests-usr.bin-tests compattestfile,atf 6818./usr/tests/usr.bin/xlint/lint1/msg_275.c tests-usr.bin-tests compattestfile,atf
6813./usr/tests/usr.bin/xlint/lint1/msg_275.exp tests-usr.bin-tests compattestfile,atf 6819./usr/tests/usr.bin/xlint/lint1/msg_275.exp tests-usr.bin-tests compattestfile,atf
6814./usr/tests/usr.bin/xlint/lint1/msg_276.c tests-usr.bin-tests compattestfile,atf 6820./usr/tests/usr.bin/xlint/lint1/msg_276.c tests-usr.bin-tests compattestfile,atf
6815./usr/tests/usr.bin/xlint/lint1/msg_276.exp tests-usr.bin-tests compattestfile,atf 6821./usr/tests/usr.bin/xlint/lint1/msg_276.exp tests-usr.bin-tests compattestfile,atf
6816./usr/tests/usr.bin/xlint/lint1/msg_277.c tests-usr.bin-tests compattestfile,atf 6822./usr/tests/usr.bin/xlint/lint1/msg_277.c tests-usr.bin-tests compattestfile,atf
6817./usr/tests/usr.bin/xlint/lint1/msg_277.exp tests-usr.bin-tests compattestfile,atf 6823./usr/tests/usr.bin/xlint/lint1/msg_277.exp tests-usr.bin-tests compattestfile,atf
6818./usr/tests/usr.bin/xlint/lint1/msg_278.c tests-usr.bin-tests compattestfile,atf 6824./usr/tests/usr.bin/xlint/lint1/msg_278.c tests-usr.bin-tests compattestfile,atf
6819./usr/tests/usr.bin/xlint/lint1/msg_278.exp tests-usr.bin-tests compattestfile,atf 6825./usr/tests/usr.bin/xlint/lint1/msg_278.exp tests-usr.bin-tests compattestfile,atf
6820./usr/tests/usr.bin/xlint/lint1/msg_279.c tests-usr.bin-tests compattestfile,atf 6826./usr/tests/usr.bin/xlint/lint1/msg_279.c tests-usr.bin-tests compattestfile,atf

cvs diff -r1.80 -r1.81 src/tests/usr.bin/xlint/lint1/Makefile (expand / switch to unified diff)

--- src/tests/usr.bin/xlint/lint1/Makefile 2021/07/06 17:33:07 1.80
+++ src/tests/usr.bin/xlint/lint1/Makefile 2021/07/08 05:18:49 1.81
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.80 2021/07/06 17:33:07 rillig Exp $ 1# $NetBSD: Makefile,v 1.81 2021/07/08 05:18:49 rillig Exp $
2 2
3NOMAN= # defined 3NOMAN= # defined
4MAX_MESSAGE= 345 # see lint1/err.c 4MAX_MESSAGE= 345 # see lint1/err.c
5 5
6.include <bsd.own.mk> 6.include <bsd.own.mk>
7 7
8TESTSDIR= ${TESTSBASE}/usr.bin/xlint/lint1 8TESTSDIR= ${TESTSBASE}/usr.bin/xlint/lint1
9 9
10TESTS_SH= t_integration 10TESTS_SH= t_integration
11 11
12FILESDIR= ${TESTSDIR} 12FILESDIR= ${TESTSDIR}
13FILES+= c11_generic_expression.c 13FILES+= c11_generic_expression.c
14FILES+= c11_generic_expression.exp 14FILES+= c11_generic_expression.exp
@@ -147,30 +147,36 @@ FILES+= lex_comment.exp @@ -147,30 +147,36 @@ FILES+= lex_comment.exp
147FILES+= lex_floating.c 147FILES+= lex_floating.c
148FILES+= lex_floating.exp 148FILES+= lex_floating.exp
149FILES+= lex_integer.c 149FILES+= lex_integer.c
150FILES+= lex_integer.exp 150FILES+= lex_integer.exp
151FILES+= lex_integer_ilp32.c 151FILES+= lex_integer_ilp32.c
152FILES+= lex_integer_ilp32.exp 152FILES+= lex_integer_ilp32.exp
153FILES+= lex_string.c 153FILES+= lex_string.c
154FILES+= lex_string.exp 154FILES+= lex_string.exp
155FILES+= lex_wide_char.c 155FILES+= lex_wide_char.c
156FILES+= lex_wide_char.exp 156FILES+= lex_wide_char.exp
157FILES+= lex_wide_string.c 157FILES+= lex_wide_string.c
158FILES+= lex_wide_string.exp 158FILES+= lex_wide_string.exp
159FILES+= ${:U0 ${:U:${:Urange=${MAX_MESSAGE}}}:C,^.$,0&,:C,^..$,0&,:@i@msg_${i}.c msg_${i}.exp@:Nmsg_176.exp} 159FILES+= ${:U0 ${:U:${:Urange=${MAX_MESSAGE}}}:C,^.$,0&,:C,^..$,0&,:@i@msg_${i}.c msg_${i}.exp@:Nmsg_176.exp}
 160FILES+= msg_001_c90.c
 161FILES+= msg_001_c90.exp
 162FILES+= msg_000_c90.c
 163FILES+= msg_000_c90.exp
160FILES+= msg_230_uchar.c 164FILES+= msg_230_uchar.c
161FILES+= msg_230_uchar.exp 165FILES+= msg_230_uchar.exp
162FILES+= msg_259_ilp32.c 166FILES+= msg_259_ilp32.c
163FILES+= msg_259_ilp32.exp 167FILES+= msg_259_ilp32.exp
 168FILES+= msg_272_c90.c
 169FILES+= msg_272_c90.exp
164FILES+= op_colon.c 170FILES+= op_colon.c
165FILES+= op_colon.exp 171FILES+= op_colon.exp
166FILES+= op_shl_lp64.c 172FILES+= op_shl_lp64.c
167FILES+= op_shl_lp64.exp 173FILES+= op_shl_lp64.exp
168FILES+= stmt_for.c 174FILES+= stmt_for.c
169FILES+= stmt_for.exp 175FILES+= stmt_for.exp
170 176
171# Note: only works for adding tests. 177# Note: only works for adding tests.
172# To remove a test, the $$mi file must be edited manually. 178# To remove a test, the $$mi file must be edited manually.
173sync-mi: .PHONY 179sync-mi: .PHONY
174 @set -eu; \ 180 @set -eu; \
175 cd "${MAKEFILE:tA:H}/../../../.."; \ 181 cd "${MAKEFILE:tA:H}/../../../.."; \
176 mi="distrib/sets/lists/tests/mi"; \ 182 mi="distrib/sets/lists/tests/mi"; \

File Added: src/tests/usr.bin/xlint/lint1/msg_000_c90.c
/*	$NetBSD: msg_000_c90.c,v 1.1 2021/07/08 05:18:49 rillig Exp $	*/
# 3 "msg_000_c90.c"

/*
 * Test for message: empty declaration [0]
 *
 * In strict C90 mode, an empty declaration is an error, not merely a warning.
 */

/* lint1-flags: -s */

/* expect+1: error: empty declaration [0] */
;

File Added: src/tests/usr.bin/xlint/lint1/Attic/msg_000_c90.exp
msg_000_c90.c(13): error: empty declaration [0]

File Added: src/tests/usr.bin/xlint/lint1/msg_001_c90.c
/*	$NetBSD: msg_001_c90.c,v 1.1 2021/07/08 05:18:49 rillig Exp $	*/
# 3 "msg_001_c90.c"

/*
 * Test for message: old style declaration; add 'int' [1]
 *
 * In strict C90 mode, an old-style declaration is an error, not merely a
 * warning.
 */

/* lint1-flags: -s */

/* expect+1: error: old style declaration; add 'int' [1] */
implicit_global_variable;

File Added: src/tests/usr.bin/xlint/lint1/Attic/msg_001_c90.exp
msg_001_c90.c(14): error: old style declaration; add 'int' [1]

File Added: src/tests/usr.bin/xlint/lint1/msg_272_c90.c
/*	$NetBSD: msg_272_c90.c,v 1.1 2021/07/08 05:18:49 rillig Exp $	*/
# 3 "msg_272_c90.c"

/*
 * Test for message: empty translation unit [272]
 *
 * In strict C90 mode, an empty translation unit is an error, not merely a
 * warning.
 */

/* lint1-flags: -s */

/* expect+1: error: empty translation unit [272] */

File Added: src/tests/usr.bin/xlint/lint1/Attic/msg_272_c90.exp
msg_272_c90.c(14): error: empty translation unit [272]

cvs diff -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_002.c (expand / switch to unified diff)

--- src/tests/usr.bin/xlint/lint1/msg_002.c 2021/01/31 11:12:07 1.3
+++ src/tests/usr.bin/xlint/lint1/msg_002.c 2021/07/08 05:18:49 1.4
@@ -1,8 +1,12 @@ @@ -1,8 +1,12 @@
1/* $NetBSD: msg_002.c,v 1.3 2021/01/31 11:12:07 rillig Exp $ */ 1/* $NetBSD: msg_002.c,v 1.4 2021/07/08 05:18:49 rillig Exp $ */
2# 3 "msg_002.c" 2# 3 "msg_002.c"
3 3
4// Test for message: empty declaration [2] 4// Test for message: empty declaration [2]
5 5
6int; /* expect: 2 */ 6/* expect+1: warning: empty declaration [2] */
 7int;
7 8
8int local_variable; 9int local_variable;
 10
 11/* expect+1: warning: empty declaration [2] */
 12const;

cvs diff -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_072.c (expand / switch to unified diff)

--- src/tests/usr.bin/xlint/lint1/msg_072.c 2021/01/31 11:12:07 1.3
+++ src/tests/usr.bin/xlint/lint1/msg_072.c 2021/07/08 05:18:49 1.4
@@ -1,8 +1,12 @@ @@ -1,8 +1,12 @@
1/* $NetBSD: msg_072.c,v 1.3 2021/01/31 11:12:07 rillig Exp $ */ 1/* $NetBSD: msg_072.c,v 1.4 2021/07/08 05:18:49 rillig Exp $ */
2# 3 "msg_072.c" 2# 3 "msg_072.c"
3 3
4// Test for message: typedef declares no type name [72] 4// Test for message: typedef declares no type name [72]
5 5
6typedef int; /* expect: 72 */ 6/* expect+1: warning: typedef declares no type name [72] */
 7typedef int;
7 8
8typedef int number; 9typedef int number;
 10
 11/* expect+1: warning: typedef declares no type name [72] */
 12const typedef;

cvs diff -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/Attic/msg_002.exp (expand / switch to unified diff)

--- src/tests/usr.bin/xlint/lint1/Attic/msg_002.exp 2021/01/02 18:06:01 1.2
+++ src/tests/usr.bin/xlint/lint1/Attic/msg_002.exp 2021/07/08 05:18:49 1.3

cvs diff -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/Attic/msg_072.exp (expand / switch to unified diff)

--- src/tests/usr.bin/xlint/lint1/Attic/msg_072.exp 2021/01/03 15:35:00 1.2
+++ src/tests/usr.bin/xlint/lint1/Attic/msg_072.exp 2021/07/08 05:18:49 1.3