aboutsummaryrefslogtreecommitdiff
path: root/texinfo/testsuite/text/conditions.texi
diff options
context:
space:
mode:
Diffstat (limited to 'texinfo/testsuite/text/conditions.texi')
-rw-r--r--texinfo/testsuite/text/conditions.texi26
1 files changed, 26 insertions, 0 deletions
diff --git a/texinfo/testsuite/text/conditions.texi b/texinfo/testsuite/text/conditions.texi
new file mode 100644
index 00000000000..5c4a3209720
--- /dev/null
+++ b/texinfo/testsuite/text/conditions.texi
@@ -0,0 +1,26 @@
+@setfilename conditions
+@set foo1
+@clear foo2
+@clear bar
+@node Top
+@top Test of conditions
+@menu
+@ifclear bar
+@ifset foo1
+* Foo1:: This text should be included.
+@end ifset
+@ifset foo2
+* Foo2:: This text should not be included.
+@end ifset
+@end ifclear
+* Foo3:: And we have no blank line here.
+@end menu
+@node Foo1
+@chapter Foo1
+@ifset foo2
+@node Foo2
+@chapter Foo2
+@end ifset
+@node Foo3
+@chapter Foo3
+@bye