summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-13 18:44:38 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-13 18:44:38 -0800
commit2d141917e87e73e2853cbf2538e7ccacc6095041 (patch)
treeecafeac7d3ff4e94b0ccca37f84c987a01730a5e /test
parent97b943c832dd3389b81c0896826977e0c447de28 (diff)
downloadbinaryen-2d141917e87e73e2853cbf2538e7ccacc6095041.tar.gz
binaryen-2d141917e87e73e2853cbf2538e7ccacc6095041.tar.bz2
binaryen-2d141917e87e73e2853cbf2538e7ccacc6095041.zip
add shell tests
Diffstat (limited to 'test')
-rw-r--r--test/if_else.txt52
1 files changed, 52 insertions, 0 deletions
diff --git a/test/if_else.txt b/test/if_else.txt
new file mode 100644
index 000000000..2245f7230
--- /dev/null
+++ b/test/if_else.txt
@@ -0,0 +1,52 @@
+printing before:
+(module
+ (memory 16777216 16777216)
+ (func $ifs
+ (block
+ (if
+ (i32.const 0)
+ (i32.const 1)
+ )
+ (if_else
+ (i32.const 0)
+ (i32.const 1)
+ (i32.const 2)
+ )
+ (if_else
+ (i32.const 4)
+ (i32.const 5)
+ (i32.const 6)
+ )
+ )
+ )
+)
+printing after:
+(module
+ (memory 16777216 16777216)
+ (func $ifs
+ (block
+ (if
+ (i32.const 0)
+ (i32.const 1)
+ )
+ (block $L0
+ (if
+ (i32.const 0)
+ (br $L0
+ (i32.const 1)
+ )
+ )
+ (i32.const 2)
+ )
+ (block $L1
+ (if
+ (i32.const 4)
+ (br $L1
+ (i32.const 5)
+ )
+ )
+ (i32.const 6)
+ )
+ )
+ )
+)