Module Name: src
Committed By: rillig
Date: Sun Jul 4 13:44:43 UTC 2021
Modified Files:
src/tests/usr.bin/xlint/lint1: msg_080.c msg_080.exp
Log Message:
tests/lint: fix unintended character constant in test
I originally intended to type ASCII DEL as an example of a nonprintable
character code. The actual character that landed in the code was
instead U+2303 "house", which looks similar to the typical
representation of the DEL character. The UTF-8 byte sequence for that
code point started with \xE2, or in octal \342.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_080.c \
src/tests/usr.bin/xlint/lint1/msg_080.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_080.c
diff -u src/tests/usr.bin/xlint/lint1/msg_080.c:1.3 src/tests/usr.bin/xlint/lint1/msg_080.c:1.4
--- src/tests/usr.bin/xlint/lint1/msg_080.c:1.3 Tue Jun 29 07:17:43 2021
+++ src/tests/usr.bin/xlint/lint1/msg_080.c Sun Jul 4 13:44:43 2021
@@ -1,9 +1,7 @@
-/* $NetBSD: msg_080.c,v 1.3 2021/06/29 07:17:43 rillig Exp $ */
+/* $NetBSD: msg_080.c,v 1.4 2021/07/04 13:44:43 rillig Exp $ */
# 3 "msg_080.c"
// Test for message: dubious escape \%o [80]
-/* expect+3: dubious escape \342 [80] */ /* FIXME: Why 342? */
-/* expect+2: multi-character character constant [294] */
-/* expect+1: initializer does not fit */
-char backslash_delete = '\⌂';
+/* expect+1: dubious escape \177 [80] */
+char backslash_delete = '\';
Index: src/tests/usr.bin/xlint/lint1/msg_080.exp
diff -u src/tests/usr.bin/xlint/lint1/msg_080.exp:1.3 src/tests/usr.bin/xlint/lint1/msg_080.exp:1.4
--- src/tests/usr.bin/xlint/lint1/msg_080.exp:1.3 Tue Jun 29 07:17:43 2021
+++ src/tests/usr.bin/xlint/lint1/msg_080.exp Sun Jul 4 13:44:43 2021
@@ -1,3 +1 @@
-msg_080.c(9): warning: dubious escape \342 [80]
-msg_080.c(9): warning: multi-character character constant [294]
-msg_080.c(9): warning: initializer does not fit [178]
+msg_080.c(7): warning: dubious escape \177 [80]