summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit.2asm.js10
-rw-r--r--test/unit.wast7
2 files changed, 17 insertions, 0 deletions
diff --git a/test/unit.2asm.js b/test/unit.2asm.js
index 953437f63..ca62fb0d9 100644
--- a/test/unit.2asm.js
+++ b/test/unit.2asm.js
@@ -241,6 +241,16 @@ function asmFunc(global, env, buffer) {
}
+ function block_and_after() {
+ var wasm2asm_i32$0 = 0;
+ waka : {
+ 1;
+ break waka;
+ }
+ wasm2asm_i32$0 = 0;
+ return wasm2asm_i32$0 | 0;
+ }
+
var FUNCTION_TABLE_d = [importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles];
var FUNCTION_TABLE_v = [z, big_negative, z, z, w, w, z, w, z, z, z, z, z, z, z, z];
var FUNCTION_TABLE_vf = [cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg];
diff --git a/test/unit.wast b/test/unit.wast
index 4311a2a33..55c9e9fa1 100644
--- a/test/unit.wast
+++ b/test/unit.wast
@@ -378,4 +378,11 @@
(func $w
(nop)
)
+ (func $block_and_after (result i32)
+ (block $waka
+ (i32.const 1)
+ (br $waka)
+ )
+ (i32.const 0)
+ )
)