Module Name:    src
Committed By:   rillig
Date:           Mon May 15 13:28:05 UTC 2023

Modified Files:
        src/tests/usr.bin/indent: opt_eei.c

Log Message:
tests/indent: add another test for -eei -nlp


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/tests/usr.bin/indent/opt_eei.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_eei.c
diff -u src/tests/usr.bin/indent/opt_eei.c:1.10 src/tests/usr.bin/indent/opt_eei.c:1.11
--- src/tests/usr.bin/indent/opt_eei.c:1.10	Mon May 15 12:59:43 2023
+++ src/tests/usr.bin/indent/opt_eei.c	Mon May 15 13:28:05 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: opt_eei.c,v 1.10 2023/05/15 12:59:43 rillig Exp $ */
+/* $NetBSD: opt_eei.c,v 1.11 2023/05/15 13:28:05 rillig Exp $ */
 
 /*
  * Tests for the options '-eei' and '-neei'.
@@ -160,3 +160,30 @@ b)
 	    stmt();
 }
 //indent end
+
+
+/*
+ * Ensure that after a condition with extra indentation, the following
+ * statements are not affected.
+ */
+//indent input
+{
+	if (
+		cond
+	)
+		stmt(
+			arg
+		);
+}
+//indent end
+
+//indent run -eei -nlp -i4
+{
+    if (
+	    cond
+	)
+	stmt(
+		arg
+	    );
+}
+//indent end

Reply via email to