summaryrefslogtreecommitdiff
path: root/test/passes/lower-if-else.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/lower-if-else.wast')
-rw-r--r--test/passes/lower-if-else.wast21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/passes/lower-if-else.wast b/test/passes/lower-if-else.wast
new file mode 100644
index 000000000..70251a469
--- /dev/null
+++ b/test/passes/lower-if-else.wast
@@ -0,0 +1,21 @@
+(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)
+ )
+ )
+ )
+)