Module Name: src
Committed By: rillig
Date: Sun Jan 31 12:30:53 UTC 2021
Modified Files:
src/tests/usr.bin/xlint/lint1: msg_161.c
Log Message:
lint: add expectations to test for message 161
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_161.c
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_161.c
diff -u src/tests/usr.bin/xlint/lint1/msg_161.c:1.2 src/tests/usr.bin/xlint/lint1/msg_161.c:1.3
--- src/tests/usr.bin/xlint/lint1/msg_161.c:1.2 Sun Jan 31 12:29:16 2021
+++ src/tests/usr.bin/xlint/lint1/msg_161.c Sun Jan 31 12:30:53 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: msg_161.c,v 1.2 2021/01/31 12:29:16 rillig Exp $ */
+/* $NetBSD: msg_161.c,v 1.3 2021/01/31 12:30:53 rillig Exp $ */
# 3 "msg_161.c"
// Test for message: constant in conditional context [161]
@@ -8,14 +8,14 @@
void
while_1(void)
{
- while (1)
+ while (1) /* expect: 161 */
continue;
}
void
while_0(void)
{
- while (0)
+ while (0) /* expect: 161 */
continue;
}
@@ -30,7 +30,7 @@ do_while_0(void)
{
do {
- } while (0);
+ } while (0); /* expect: 161 */
}
void
@@ -38,5 +38,5 @@ do_while_1(void)
{
do {
- } while (1);
+ } while (1); /* expect: 161 */
}