Module Name: src Committed By: rillig Date: Mon Aug 30 20:11:56 UTC 2021
Modified Files: src/tests/usr.bin/xlint/lint2: read.exp read.ln Log Message: tests/lint: test reading of varargs, printflike, scanflike To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint2/read.exp cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint2/read.ln Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/usr.bin/xlint/lint2/read.exp diff -u src/tests/usr.bin/xlint/lint2/read.exp:1.2 src/tests/usr.bin/xlint/lint2/read.exp:1.3 --- src/tests/usr.bin/xlint/lint2/read.exp:1.2 Mon Aug 30 19:07:57 2021 +++ src/tests/usr.bin/xlint/lint2/read.exp Mon Aug 30 20:11:56 2021 @@ -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 Index: src/tests/usr.bin/xlint/lint2/read.ln diff -u src/tests/usr.bin/xlint/lint2/read.ln:1.3 src/tests/usr.bin/xlint/lint2/read.ln:1.4 --- src/tests/usr.bin/xlint/lint2/read.ln:1.3 Mon Aug 30 19:07:57 2021 +++ src/tests/usr.bin/xlint/lint2/read.ln Mon Aug 30 20:11:56 2021 @@ -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 @@ S read.c # 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