Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/usr.bin/indent tests/indent: demonstrate missing space...
details: https://anonhg.NetBSD.org/src/rev/5034f558ac40
branches: trunk
changeset: 1024504:5034f558ac40
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Oct 26 21:45:16 2021 +0000
description:
tests/indent: demonstrate missing space before '='
Reported by RVP via private mail. Broken since the import of FreeBSD
indent in 2019.
indent-2000.10.11.14.46.04
| char *(*fn) (int) = NULL;
indent-2019.02.03.03.19.29
indent-2019.04.04.15.27.35
| char *(* fn) (int)= NULL;
indent-2021.09.30.21.38.43
indent-2021.09.30.21.48.12
| char *(* fn)(int)= NULL;
diffstat:
tests/usr.bin/indent/token_binary_op.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r e4f617cd367b -r 5034f558ac40 tests/usr.bin/indent/token_binary_op.c
--- a/tests/usr.bin/indent/token_binary_op.c Tue Oct 26 21:37:27 2021 +0000
+++ b/tests/usr.bin/indent/token_binary_op.c Tue Oct 26 21:45:16 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: token_binary_op.c,v 1.1 2021/10/18 22:30:34 rillig Exp $ */
+/* $NetBSD: token_binary_op.c,v 1.2 2021/10/26 21:45:16 rillig Exp $ */
/* $FreeBSD$ */
/*
@@ -218,3 +218,13 @@
return;
}
#indent end
+
+
+#indent input
+char* (*fn)(int) = NULL;
+#indent end
+
+/* FIXME: Missing space before '='. */
+#indent run -di0
+char *(*fn)(int)= NULL;
+#indent end
Home |
Main Index |
Thread Index |
Old Index