summaryrefslogtreecommitdiff
path: root/test/passes/simplify-locals-notee.wast
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-06-12 16:50:28 -0700
committerGitHub <noreply@github.com>2017-06-12 16:50:28 -0700
commit68dc2eddc24844c7582cafa85afeb4023a47888f (patch)
treefcaedc839420fe43c555166420865d5aeef0dbfa /test/passes/simplify-locals-notee.wast
parent93c65f98b7a9b0977578dbf55778529efec646f1 (diff)
downloadbinaryen-68dc2eddc24844c7582cafa85afeb4023a47888f.tar.gz
binaryen-68dc2eddc24844c7582cafa85afeb4023a47888f.tar.bz2
binaryen-68dc2eddc24844c7582cafa85afeb4023a47888f.zip
Support new result syntax for if/loop/block (#1047)
Support both syntax formats in input since the old spec tests still need to be parsable.
Diffstat (limited to 'test/passes/simplify-locals-notee.wast')
-rw-r--r--test/passes/simplify-locals-notee.wast4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/passes/simplify-locals-notee.wast b/test/passes/simplify-locals-notee.wast
index e7b827f55..33f891e61 100644
--- a/test/passes/simplify-locals-notee.wast
+++ b/test/passes/simplify-locals-notee.wast
@@ -8,9 +8,9 @@
(set_local $x (i32.const 1))
(if (get_local $x) (nop))
(if (get_local $x) (nop))
- (set_local $y (if i32 (i32.const 2) (i32.const 3) (i32.const 4)))
+ (set_local $y (if (result i32) (i32.const 2) (i32.const 3) (i32.const 4)))
(drop (get_local $y))
- (set_local $z (block i32 (i32.const 5)))
+ (set_local $z (block (result i32) (i32.const 5)))
(drop (get_local $z))
(if (i32.const 6)
(set_local $a (i32.const 7))