Module Name: src Committed By: rillig Date: Tue Oct 26 22:00:38 UTC 2021
Modified Files: src/tests/usr.bin/indent: token_binary_op.c Log Message: tests/indent: document cause for missing space between ')' and '=' To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/indent/token_binary_op.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/usr.bin/indent/token_binary_op.c diff -u src/tests/usr.bin/indent/token_binary_op.c:1.2 src/tests/usr.bin/indent/token_binary_op.c:1.3 --- src/tests/usr.bin/indent/token_binary_op.c:1.2 Tue Oct 26 21:45:16 2021 +++ src/tests/usr.bin/indent/token_binary_op.c Tue Oct 26 22:00:38 2021 @@ -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 @@ peculiarities(void) #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