Module Name: src Committed By: rillig Date: Sun Oct 31 21:06:56 UTC 2021
Modified Files: src/tests/usr.bin/indent: opt_pcs.c Log Message: tests/indent: test indirect function call with '-pcs' and '-npcs' To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/indent/opt_pcs.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/opt_pcs.c diff -u src/tests/usr.bin/indent/opt_pcs.c:1.5 src/tests/usr.bin/indent/opt_pcs.c:1.6 --- src/tests/usr.bin/indent/opt_pcs.c:1.5 Sun Oct 24 11:42:57 2021 +++ src/tests/usr.bin/indent/opt_pcs.c Sun Oct 31 21:06:56 2021 @@ -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 @@ example(void) } #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.