summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-05-02 13:47:31 -0700
committerGitHub <noreply@github.com>2017-05-02 13:47:31 -0700
commite10a6e22921889970ceb6e1fb76e786bc66d79d7 (patch)
tree78ac0b8dfd7ff9cc2758b8eb56197486d4ddb868 /test
parent5de55af88eaac818f86eaaec3f686eaede01397e (diff)
downloadbinaryen-e10a6e22921889970ceb6e1fb76e786bc66d79d7.tar.gz
binaryen-e10a6e22921889970ceb6e1fb76e786bc66d79d7.tar.bz2
binaryen-e10a6e22921889970ceb6e1fb76e786bc66d79d7.zip
disallow empty blocks with a type - if they return a type, they must have contents. make s2wasm avoid outputting that as well (#992)
Diffstat (limited to 'test')
-rw-r--r--test/dot_s/unreachable_blocks.wast4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/dot_s/unreachable_blocks.wast b/test/dot_s/unreachable_blocks.wast
index a0a1daadc..f1593a00c 100644
--- a/test/dot_s/unreachable_blocks.wast
+++ b/test/dot_s/unreachable_blocks.wast
@@ -15,6 +15,7 @@
(i32.const 2)
)
(block $label$0 i32
+ (unreachable)
)
)
(func $unreachable_block_i64 (result i64)
@@ -22,6 +23,7 @@
(i64.const 3)
)
(block $label$0 i64
+ (unreachable)
)
)
(func $unreachable_block_f32 (result f32)
@@ -29,6 +31,7 @@
(f32.const 4.5)
)
(block $label$0 f32
+ (unreachable)
)
)
(func $unreachable_block_f64 (result f64)
@@ -36,6 +39,7 @@
(f64.const 5.5)
)
(block $label$0 f64
+ (unreachable)
)
)
(func $unreachable_loop_void