summaryrefslogtreecommitdiff
path: root/test/binaryen.js
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/binaryen.js
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/binaryen.js')
-rw-r--r--test/binaryen.js/kitchen-sink.js.txt16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/binaryen.js/kitchen-sink.js.txt b/test/binaryen.js/kitchen-sink.js.txt
index 59cf1ab10..c70888508 100644
--- a/test/binaryen.js/kitchen-sink.js.txt
+++ b/test/binaryen.js/kitchen-sink.js.txt
@@ -22,10 +22,10 @@ BinaryenFloat64: 4
(start $starter)
(func "$kitchen()sinker" (type $iiIfF) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32)
(local $4 i32)
- (block $the-body i32
+ (block $the-body (result i32)
(block $the-nothing
(drop
- (block $the-value i32
+ (block $the-value (result i32)
(drop
(i32.clz
(i32.const -10)
@@ -416,12 +416,12 @@ BinaryenFloat64: 4
)
)
(drop
- (loop $in i32
+ (loop $in (result i32)
(i32.const 0)
)
)
(drop
- (loop i32
+ (loop (result i32)
(i32.const 0)
)
)
@@ -1440,10 +1440,10 @@ int main() {
(start $starter)
(func "$kitchen()sinker" (type $iiIfF) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32)
(local $4 i32)
- (block $the-body i32
+ (block $the-body (result i32)
(block $the-nothing
(drop
- (block $the-value i32
+ (block $the-value (result i32)
(drop
(i32.clz
(i32.const -10)
@@ -1834,12 +1834,12 @@ int main() {
)
)
(drop
- (loop $in i32
+ (loop $in (result i32)
(i32.const 0)
)
)
(drop
- (loop i32
+ (loop (result i32)
(i32.const 0)
)
)