Module Name: src
Committed By: rillig
Date: Sun Aug 29 09:09:53 UTC 2021
Modified Files:
src/tests/usr.bin/xlint/lint1: msg_220.c msg_220.exp
Log Message:
tests/lint: test lowercase fallthrough
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/msg_220.c
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/msg_220.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_220.c
diff -u src/tests/usr.bin/xlint/lint1/msg_220.c:1.5 src/tests/usr.bin/xlint/lint1/msg_220.c:1.6
--- src/tests/usr.bin/xlint/lint1/msg_220.c:1.5 Sun Aug 29 09:05:35 2021
+++ src/tests/usr.bin/xlint/lint1/msg_220.c Sun Aug 29 09:09:53 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: msg_220.c,v 1.5 2021/08/29 09:05:35 rillig Exp $ */
+/* $NetBSD: msg_220.c,v 1.6 2021/08/29 09:09:53 rillig Exp $ */
# 3 "msg_220.c"
// Test for message: fallthrough on case statement [220]
@@ -68,5 +68,9 @@ annotation_comment_variations(int n)
/* expect+1: warning: fallthrough on case statement [220] */
case 5:
println("5");
+ /* fallthrough */
+ /* expect+1: warning: fallthrough on case statement [220] */
+ case 6:
+ println("6");
}
}
Index: src/tests/usr.bin/xlint/lint1/msg_220.exp
diff -u src/tests/usr.bin/xlint/lint1/msg_220.exp:1.4 src/tests/usr.bin/xlint/lint1/msg_220.exp:1.5
--- src/tests/usr.bin/xlint/lint1/msg_220.exp:1.4 Sun Aug 29 09:05:35 2021
+++ src/tests/usr.bin/xlint/lint1/msg_220.exp Sun Aug 29 09:09:53 2021
@@ -3,3 +3,4 @@ msg_220.c(22): warning: fallthrough on d
msg_220.c(61): warning: fallthrough on case statement [220]
msg_220.c(65): warning: fallthrough on case statement [220]
msg_220.c(69): warning: fallthrough on case statement [220]
+msg_220.c(73): warning: fallthrough on case statement [220]