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: test indirect function ca...



details:   https://anonhg.NetBSD.org/src/rev/356f566c97c2
branches:  trunk
changeset: 1024716:356f566c97c2
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Oct 31 21:06:56 2021 +0000

description:
tests/indent: test indirect function call with '-pcs' and '-npcs'

diffstat:

 tests/usr.bin/indent/opt_pcs.c |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 8097f7f04e21 -r 356f566c97c2 tests/usr.bin/indent/opt_pcs.c
--- a/tests/usr.bin/indent/opt_pcs.c    Sun Oct 31 20:59:26 2021 +0000
+++ b/tests/usr.bin/indent/opt_pcs.c    Sun Oct 31 21:06:56 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: opt_pcs.c,v 1.5 2021/10/24 11:42:57 rillig Exp $ */
+/* $NetBSD: opt_pcs.c,v 1.6 2021/10/31 21:06:56 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -41,6 +41,16 @@
 }
 #indent end
 
+
+#indent input
+int var = (function)(arg);
+#indent end
+
+/* TODO: add space between the parentheses. */
+#indent run-equals-input -di0 -pcs
+#indent run-equals-input -di0 -npcs
+
+
 /*
  * The option '-pcs' also applies to 'sizeof' and 'offsetof', even though
  * these are not functions.



Home | Main Index | Thread Index | Old Index