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 disappearing ...
details: https://anonhg.NetBSD.org/src/rev/dcbb509182ca
branches: trunk
changeset: 1026317:dcbb509182ca
user: rillig <rillig%NetBSD.org@localhost>
date: Thu Nov 18 23:06:51 2021 +0000
description:
tests/indent: demonstrate disappearing function name
Since 2019-04-04, as usual.
diffstat:
tests/usr.bin/indent/fmt_decl.c | 38 +++++++++++++++++++++++++++++++++++++-
1 files changed, 37 insertions(+), 1 deletions(-)
diffs (49 lines):
diff -r eb042d3b99f8 -r dcbb509182ca tests/usr.bin/indent/fmt_decl.c
--- a/tests/usr.bin/indent/fmt_decl.c Thu Nov 18 22:27:01 2021 +0000
+++ b/tests/usr.bin/indent/fmt_decl.c Thu Nov 18 23:06:51 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fmt_decl.c,v 1.14 2021/11/18 22:27:01 rillig Exp $ */
+/* $NetBSD: fmt_decl.c,v 1.15 2021/11/18 23:06:51 rillig Exp $ */
/* $FreeBSD: head/usr.bin/indent/tests/declarations.0 334478 2018-06-01 09:41:15Z pstef $ */
/* See FreeBSD r303570 */
@@ -481,3 +481,39 @@
{
}
#indent end
+
+
+/*
+ * Since 2019-04-04, the space between the '){' is missing.
+ */
+#indent input
+int *
+function_name_____20________30________40________50
+(void)
+{}
+#indent end
+
+/* FIXME: The space between '){' is missing. */
+#indent run
+int *function_name_____20________30________40________50
+ (void){
+}
+#indent end
+
+
+/*
+ * Since 2019-04-04, some function names are preserved and others are
+ * silently discarded.
+ */
+#indent input
+int *
+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+(void)
+{}
+#indent end
+
+/* FIXME: The function name is missing. */
+#indent run
+int *(void){
+}
+#indent end
Home |
Main Index |
Thread Index |
Old Index