Module Name: src
Committed By: rillig
Date: Sun Oct 31 23:33:13 UTC 2021
Modified Files:
src/tests/usr.bin/indent: token_for_exprs.c
Log Message:
tests/indent: test formatting of 'CPU_INFO_FOREACH(cii, ci)'
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/indent/token_for_exprs.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_for_exprs.c
diff -u src/tests/usr.bin/indent/token_for_exprs.c:1.1 src/tests/usr.bin/indent/token_for_exprs.c:1.2
--- src/tests/usr.bin/indent/token_for_exprs.c:1.1 Mon Oct 18 22:30:34 2021
+++ src/tests/usr.bin/indent/token_for_exprs.c Sun Oct 31 23:33:12 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: token_for_exprs.c,v 1.1 2021/10/18 22:30:34 rillig Exp $ */
+/* $NetBSD: token_for_exprs.c,v 1.2 2021/10/31 23:33:12 rillig Exp $ */
/* $FreeBSD$ */
/*
@@ -56,3 +56,16 @@ function(void)
#indent end
#indent run-equals-input
+
+
+/*
+ * Another variant of a 'for' loop, seen in sys/arch/arm/apple/apple_intc.c.
+ */
+#indent input
+{
+ for (CPU_INFO_FOREACH(cii, ci)) {
+ }
+}
+#indent end
+
+#indent run-equals-input