Module Name:    src
Committed By:   rillig
Date:           Thu Jan  7 19:11:58 UTC 2021

Modified Files:
        src/tests/usr.bin/xlint/lint1: msg_011.c msg_011.exp

Log Message:
lint: revert test for message 11

That test only produced other messages, but not message 11.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_011.c \
    src/tests/usr.bin/xlint/lint1/msg_011.exp

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/lint1/msg_011.c
diff -u src/tests/usr.bin/xlint/lint1/msg_011.c:1.2 src/tests/usr.bin/xlint/lint1/msg_011.c:1.3
--- src/tests/usr.bin/xlint/lint1/msg_011.c:1.2	Thu Jan  7 18:37:41 2021
+++ src/tests/usr.bin/xlint/lint1/msg_011.c	Thu Jan  7 19:11:58 2021
@@ -1,24 +1,7 @@
-/*	$NetBSD: msg_011.c,v 1.2 2021/01/07 18:37:41 rillig Exp $	*/
+/*	$NetBSD: msg_011.c,v 1.3 2021/01/07 19:11:58 rillig Exp $	*/
 # 3 "msg_011.c"
 
 // Test for message: bit-field initializer out of range [11]
 
-struct example {
-	int bit_field: 4;
-} example_var[] = {
-    { 2 },
-    { 1 + 1 },
-    { 1ULL << 40 },
-    { 1LL << 40 },
-    { -16 - 1 },
-};
-
-struct example_u {
-	unsigned int bit_field: 4;
-} example_var_u[] = {
-    { 2 },
-    { 1 + 1 },
-    { 1ULL << 40 },
-    { 1LL << 40 },
-    { -16 - 1 },
-};
+TODO: "Add example code that triggers the above message."
+TODO: "Add example code that almost triggers the above message."
Index: src/tests/usr.bin/xlint/lint1/msg_011.exp
diff -u src/tests/usr.bin/xlint/lint1/msg_011.exp:1.2 src/tests/usr.bin/xlint/lint1/msg_011.exp:1.3
--- src/tests/usr.bin/xlint/lint1/msg_011.exp:1.2	Thu Jan  7 18:37:41 2021
+++ src/tests/usr.bin/xlint/lint1/msg_011.exp	Thu Jan  7 19:11:58 2021
@@ -1,6 +1 @@
-msg_011.c(11): warning: bit-field initializer does not fit [180]
-msg_011.c(12): warning: bit-field initializer does not fit [180]
-msg_011.c(13): warning: bit-field initializer does not fit [180]
-msg_011.c(21): warning: bit-field initializer does not fit [180]
-msg_011.c(22): warning: bit-field initializer does not fit [180]
-msg_011.c(23): warning: initialisation of unsigned with negative constant [221]
+msg_011.c(6): syntax error ':' [249]

Reply via email to