]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
multi-line "if" works by magic
authorAlan T. DeKok <aland@freeradius.org>
Thu, 25 Aug 2022 20:39:57 +0000 (16:39 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 28 Aug 2022 14:56:10 +0000 (10:56 -0400)
tho you can't (yet) put comments on a multiline "if" statement

src/tests/keywords/if-multiline [new file with mode: 0644]

diff --git a/src/tests/keywords/if-multiline b/src/tests/keywords/if-multiline
new file mode 100644 (file)
index 0000000..f311003
--- /dev/null
@@ -0,0 +1,11 @@
+#
+#  PRE: if
+#
+#  Now that we ignore whitespace (including \r\n) inside of a *bracketed* expression,
+#  we can magically have multiline "if" statements.
+#
+if (1 + 2
+     != 3) {
+       test_fail
+}
+success