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 tests/lint: fix negation in explan...
details: https://anonhg.NetBSD.org/src/rev/405ae06c66af
branches: trunk
changeset: 1026377:405ae06c66af
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Nov 20 17:27:46 2021 +0000
description:
tests/lint: fix negation in explanation for strict bool mode
diffstat:
tests/usr.bin/xlint/lint1/d_c99_bool_strict.c | 8 ++++----
tests/usr.bin/xlint/lint1/lex_string.c | 5 ++++-
2 files changed, 8 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 3cd5b3f61d74 -r 405ae06c66af tests/usr.bin/xlint/lint1/d_c99_bool_strict.c
--- a/tests/usr.bin/xlint/lint1/d_c99_bool_strict.c Sat Nov 20 17:18:31 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_bool_strict.c Sat Nov 20 17:27:46 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: d_c99_bool_strict.c,v 1.34 2021/11/16 21:01:06 rillig Exp $ */
+/* $NetBSD: d_c99_bool_strict.c,v 1.35 2021/11/20 17:27:46 rillig Exp $ */
# 3 "d_c99_bool_strict.c"
/*
@@ -816,9 +816,9 @@
/*
* Before tree.c 1.395 from 2021-11-16, the expression below didn't
- * produce a warning since the expression 'stdio_stdin' didn't come
- * from a system header (typically via a macro), and this property
- * was passed up to the expression 'ferror(stdio_stdin)'.
+ * produce a warning since the expression 'stdio_files' came from a
+ * system header (via a macro), and this property was passed up to
+ * the expression 'ferror(stdio_files[1])'.
*
* That was wrong though since the type of a function call expression
* only depends on the function itself but not its arguments types.
diff -r 3cd5b3f61d74 -r 405ae06c66af tests/usr.bin/xlint/lint1/lex_string.c
--- a/tests/usr.bin/xlint/lint1/lex_string.c Sat Nov 20 17:18:31 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/lex_string.c Sat Nov 20 17:27:46 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lex_string.c,v 1.3 2021/08/23 17:47:34 rillig Exp $ */
+/* $NetBSD: lex_string.c,v 1.4 2021/11/20 17:27:46 rillig Exp $ */
# 3 "lex_string.c"
/*
@@ -31,3 +31,6 @@
/* expect+1: error: cannot concatenate wide and regular string literals [292] */
sink("plain" L"wide");
}
+
+/* TODO: test digraphs inside string literals */
+/* TODO: test trigraphs inside string literals */
Home |
Main Index |
Thread Index |
Old Index