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: document cause for missin...



details:   https://anonhg.NetBSD.org/src/rev/7a26f5f49d02
branches:  trunk
changeset: 1024505:7a26f5f49d02
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Oct 26 22:00:38 2021 +0000

description:
tests/indent: document cause for missing space between ')' and '='

diffstat:

 tests/usr.bin/indent/token_binary_op.c |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 5034f558ac40 -r 7a26f5f49d02 tests/usr.bin/indent/token_binary_op.c
--- a/tests/usr.bin/indent/token_binary_op.c    Tue Oct 26 21:45:16 2021 +0000
+++ b/tests/usr.bin/indent/token_binary_op.c    Tue Oct 26 22:00:38 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: token_binary_op.c,v 1.2 2021/10/26 21:45:16 rillig Exp $ */
+/* $NetBSD: token_binary_op.c,v 1.3 2021/10/26 22:00:38 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -221,10 +221,17 @@
 
 
 #indent input
-char* (*fn)(int) = NULL;
+char *(*fn)() = NULL;
+char *(*fn)(int) = NULL;
+char *(*fn)(int, int) = NULL;
 #indent end
 
-/* FIXME: Missing space before '='. */
+/* FIXME: The parameter '(int)' is wrongly interpreted as a type cast. */
+/* FIXME: The parameter '(int, int)' is wrongly interpreted as a type cast. */
 #indent run -di0
+char *(*fn)() = NULL;
+/* $ FIXME: Missing space before '='. */
 char *(*fn)(int)= NULL;
+/* $ FIXME: Missing space before '='. */
+char *(*fn)(int, int)= NULL;
 #indent end



Home | Main Index | Thread Index | Old Index