summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ifblock1.lm46
1 files changed, 46 insertions, 0 deletions
diff --git a/test/ifblock1.lm b/test/ifblock1.lm
new file mode 100644
index 00000000..37975299
--- /dev/null
+++ b/test/ifblock1.lm
@@ -0,0 +1,46 @@
+##### LM #####
+if 1
+ print( '1\n' )
+
+if 2 {
+ print( '2\n' )
+}
+
+if 3 {
+ print( '3\n' )
+ print( '4\n' )
+}
+
+if 0
+ print( '0\n' )
+elsif 0
+ print( '0\n' )
+
+if 0
+ print( '0\n' )
+elsif 1
+ print( '5\n' )
+
+if 0
+ print( '0\n' )
+elsif 0
+ print( '0\n' )
+elsif 1
+ print( '6\n' )
+
+if 0
+ print( '0\n' )
+elsif 0
+ print( '0\n' )
+elsif 0
+ print( '0\n' )
+else
+ print( '7\n' )
+##### EXP #####
+1
+2
+3
+4
+5
+6
+7