Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/usr.bin/xlint/lint2 tests/lint: test reading of vararg...
details: https://anonhg.NetBSD.org/src/rev/28cb403f70a6
branches: trunk
changeset: 1023247:28cb403f70a6
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Aug 30 20:11:56 2021 +0000
description:
tests/lint: test reading of varargs, printflike, scanflike
diffstat:
tests/usr.bin/xlint/lint2/read.exp | 10 ++++++++++
tests/usr.bin/xlint/lint2/read.ln | 16 +++++++++++++++-
2 files changed, 25 insertions(+), 1 deletions(-)
diffs (43 lines):
diff -r 464977456f7b -r 28cb403f70a6 tests/usr.bin/xlint/lint2/read.exp
--- a/tests/usr.bin/xlint/lint2/read.exp Mon Aug 30 20:09:22 2021 +0000
+++ b/tests/usr.bin/xlint/lint2/read.exp Mon Aug 30 20:11:56 2021 +0000
@@ -1,2 +1,12 @@
a125 declared( read.c(125) ), but never used or defined
bpf_set_error defined( read.c(400) ), but never used
+printflike_0_comment defined( read.c(217) ), but never used
+printflike_10_comment defined( read.c(229) ), but never used
+printflike_3_comment defined( read.c(223) ), but never used
+printflike_comment defined( read.c(211) ), but never used
+scanflike_0_comment defined( read.c(243) ), but never used
+scanflike_3_comment defined( read.c(249) ), but never used
+scanflike_comment defined( read.c(237) ), but never used
+varargs_0_comment defined( read.c(199) ), but never used
+varargs_3_comment defined( read.c(205) ), but never used
+varargs_comment defined( read.c(193) ), but never used
diff -r 464977456f7b -r 28cb403f70a6 tests/usr.bin/xlint/lint2/read.ln
--- a/tests/usr.bin/xlint/lint2/read.ln Mon Aug 30 20:09:22 2021 +0000
+++ b/tests/usr.bin/xlint/lint2/read.ln Mon Aug 30 20:11:56 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: read.ln,v 1.3 2021/08/30 19:07:57 rillig Exp $
+# $NetBSD: read.ln,v 1.4 2021/08/30 20:11:56 rillig Exp $
#
# Cover each path of reading declarations, definitions and usages.
@@ -67,3 +67,17 @@
# The corresponding tests for parsing vararg, printflike and scanflike are
# still missing, that's why it got through unnoticed.
400 d 0.439 v0 d 13bpf_set_error F3 PsT115_compiler_state PcC E V
+
+# Taken from ../lint1/emit.exp-ln.
+193 d 0.193 v0 d 15varargs_comment F1 PcC V
+199 d 0.199 v0 d 17varargs_0_comment F1 PcC V
+205 d 0.205 v3 d 17varargs_3_comment F4 I I I PcC V
+# The PRINTFLIKE information is only emitted if its argument is > 0.
+211 d 0.211 d 18printflike_comment F1 PcC V
+217 d 0.217 d 20printflike_0_comment F1 PcC V
+223 d 0.223 v3 P3 d 20printflike_3_comment F3 I I PcC V
+229 d 0.229 v10 P10 d 21printflike_10_comment F10 I I I I I I I I I PcC V
+# The SCANFLIKE information is only emitted if its argument is > 0.
+237 d 0.237 d 17scanflike_comment F1 PcC V
+243 d 0.243 d 19scanflike_0_comment F1 PcC V
+249 d 0.249 v3 S3 d 19scanflike_3_comment F3 I I PcC V
Home |
Main Index |
Thread Index |
Old Index