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 test for message 308 "In...
details: https://anonhg.NetBSD.org/src/rev/5b305fcb077e
branches: trunk
changeset: 979602:5b305fcb077e
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Jan 02 16:55:45 2021 +0000
description:
lint: add test for message 308 "Invalid type %s for _Complex"
diffstat:
tests/usr.bin/xlint/lint1/msg_308.c | 8 +++++++-
tests/usr.bin/xlint/lint1/msg_308.exp | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 471ebb0a7343 -r 5b305fcb077e tests/usr.bin/xlint/lint1/msg_308.c
--- a/tests/usr.bin/xlint/lint1/msg_308.c Sat Jan 02 16:33:39 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_308.c Sat Jan 02 16:55:45 2021 +0000
@@ -1,7 +1,13 @@
-/* $NetBSD: msg_308.c,v 1.1 2021/01/02 10:22:44 rillig Exp $ */
+/* $NetBSD: msg_308.c,v 1.2 2021/01/02 16:55:45 rillig Exp $ */
# 3 "msg_308.c"
// Test for message: Invalid type %s for _Complex [308]
+float _Complex float_complex;
+double _Complex double_complex;
+long double _Complex long_double_complex;
+// FIXME: aborts: _Complex plain_complex;
+// FIXME: aborts: int _Complex int_complex;
+
TODO: "Add example code that triggers the above message."
TODO: "Add example code that almost triggers the above message."
diff -r 471ebb0a7343 -r 5b305fcb077e tests/usr.bin/xlint/lint1/msg_308.exp
--- a/tests/usr.bin/xlint/lint1/msg_308.exp Sat Jan 02 16:33:39 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_308.exp Sat Jan 02 16:55:45 2021 +0000
@@ -1,1 +1,1 @@
-msg_308.c(6): syntax error ':' [249]
+msg_308.c(12): syntax error ':' [249]
Home |
Main Index |
Thread Index |
Old Index