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: mark tests for message...



details:   https://anonhg.NetBSD.org/src/rev/b6f29673323c
branches:  trunk
changeset: 953314:b6f29673323c
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Mar 05 16:35:52 2021 +0000

description:
tests/lint: mark tests for messages 130 and 241 as related

diffstat:

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

diffs (25 lines):

diff -r 12c507baca9f -r b6f29673323c tests/usr.bin/xlint/lint1/msg_130.c
--- a/tests/usr.bin/xlint/lint1/msg_130.c       Fri Mar 05 16:31:49 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_130.c       Fri Mar 05 16:35:52 2021 +0000
@@ -1,8 +1,10 @@
-/*     $NetBSD: msg_130.c,v 1.6 2021/03/05 16:31:49 rillig Exp $       */
+/*     $NetBSD: msg_130.c,v 1.7 2021/03/05 16:35:52 rillig Exp $       */
 # 3 "msg_130.c"
 
 // Test for message: enum type mismatch: '%s' '%s' '%s' [130]
 
+/* See also msg_241.c, which covers unusual operators on enums. */
+
 enum color {
        RED     = 1 << 0,
        GREEN   = 1 << 1,
diff -r 12c507baca9f -r b6f29673323c tests/usr.bin/xlint/lint1/msg_130.exp
--- a/tests/usr.bin/xlint/lint1/msg_130.exp     Fri Mar 05 16:31:49 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_130.exp     Fri Mar 05 16:35:52 2021 +0000
@@ -1,3 +1,3 @@
-msg_130.c(27): warning: enum type mismatch: 'enum color' ':' 'enum daytime' [130]
-msg_130.c(29): warning: enum type mismatch: 'enum color' '!=' 'enum size' [130]
-msg_130.c(30): warning: enum type mismatch: 'enum color' '==' 'enum size' [130]
+msg_130.c(29): warning: enum type mismatch: 'enum color' ':' 'enum daytime' [130]
+msg_130.c(31): warning: enum type mismatch: 'enum color' '!=' 'enum size' [130]
+msg_130.c(32): warning: enum type mismatch: 'enum color' '==' 'enum size' [130]



Home | Main Index | Thread Index | Old Index