summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2023-06-26 20:10:23 +0000
committerrillig <rillig@NetBSD.org>2023-06-26 20:10:23 +0000
commitba6601884f017d8b3236a70f5c60db24e917fafb (patch)
tree38232079bfcbc1d7a654323842f352ef52ffe161 /tests
parent4742c517f8e3fcb9a3265d2d2f8abdd325e0bdee (diff)
indent: improve heuristics for '*' as a pointer type
Diffstat (limited to 'tests')
-rw-r--r--tests/usr.bin/indent/lsym_for.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/usr.bin/indent/lsym_for.c b/tests/usr.bin/indent/lsym_for.c
index 01051c2c8d7..272011e001f 100644
--- a/tests/usr.bin/indent/lsym_for.c
+++ b/tests/usr.bin/indent/lsym_for.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lsym_for.c,v 1.7 2023/06/08 21:18:54 rillig Exp $ */
+/* $NetBSD: lsym_for.c,v 1.8 2023/06/26 20:10:23 rillig Exp $ */
/*
* Tests for the token lsym_for, which represents the keyword 'for' that
@@ -105,8 +105,7 @@ function(void)
//indent run
{
-// $ FIXME: There should be no space after the '*'.
- for (const list_item * i = first; i != NULL; i = i->next) {
+ for (const list_item *i = first; i != NULL; i = i->next) {
}
// $ FIXME: There should be no space after the '*'.
for (list_item * *i = first; i != NULL; i = i->next) {