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 lint: add expectations to test for...
details: https://anonhg.NetBSD.org/src/rev/4c72f8d1eb64
branches: trunk
changeset: 959091:4c72f8d1eb64
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Jan 31 12:30:53 2021 +0000
description:
lint: add expectations to test for message 161
diffstat:
tests/usr.bin/xlint/lint1/msg_161.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (42 lines):
diff -r 1dcdf556c208 -r 4c72f8d1eb64 tests/usr.bin/xlint/lint1/msg_161.c
--- a/tests/usr.bin/xlint/lint1/msg_161.c Sun Jan 31 12:29:16 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_161.c Sun Jan 31 12:30:53 2021 +0000
@@ -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);
+ } while (0); /* expect: 161 */
}
void
@@ -38,5 +38,5 @@
{
do {
- } while (1);
+ } while (1); /* expect: 161 */
}
Home |
Main Index |
Thread Index |
Old Index