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/lint1 tests/lint: document why lint does...



details:   https://anonhg.NetBSD.org/src/rev/de7df1ae0b95
branches:  trunk
changeset: 984353:de7df1ae0b95
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Jul 04 13:32:35 2021 +0000

description:
tests/lint: document why lint does not need to detect wrong types

diffstat:

 tests/usr.bin/xlint/lint1/msg_004.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 8031f00defd6 -r de7df1ae0b95 tests/usr.bin/xlint/lint1/msg_004.c
--- a/tests/usr.bin/xlint/lint1/msg_004.c       Sun Jul 04 13:31:10 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_004.c       Sun Jul 04 13:32:35 2021 +0000
@@ -1,9 +1,9 @@
-/*     $NetBSD: msg_004.c,v 1.4 2021/04/05 01:35:34 rillig Exp $       */
+/*     $NetBSD: msg_004.c,v 1.5 2021/07/04 13:32:35 rillig Exp $       */
 # 3 "msg_004.c"
 
 // Test for message: illegal type combination [4]
 
-// XXX: this goes undetected
+// Lint does not detect "two or more data types", but GCC does.
 signed double signed_double;
 
 int ok_int;



Home | Main Index | Thread Index | Old Index