summaryrefslogtreecommitdiff
path: root/test/passes/spill-pointers.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/spill-pointers.wast')
-rw-r--r--test/passes/spill-pointers.wast16
1 files changed, 12 insertions, 4 deletions
diff --git a/test/passes/spill-pointers.wast b/test/passes/spill-pointers.wast
index 4eb05a721..4a9d71f14 100644
--- a/test/passes/spill-pointers.wast
+++ b/test/passes/spill-pointers.wast
@@ -83,8 +83,12 @@
(call $nothing)
(drop (local.get $x))
(if (i32.const 1)
- (return (i32.const 2))
- (return (i32.const 3))
+ (then
+ (return (i32.const 2))
+ )
+ (else
+ (return (i32.const 3))
+ )
)
(i32.const 4)
)
@@ -254,8 +258,12 @@
(call $nothing)
(drop (local.get $x))
(if (i32.const 1)
- (return (i32.const 2))
- (return (i32.const 3))
+ (then
+ (return (i32.const 2))
+ )
+ (else
+ (return (i32.const 3))
+ )
)
(i32.const 4)
)