summaryrefslogtreecommitdiff
path: root/test/wasm-only.fromasm.no-opts
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm-only.fromasm.no-opts')
-rw-r--r--test/wasm-only.fromasm.no-opts41
1 files changed, 41 insertions, 0 deletions
diff --git a/test/wasm-only.fromasm.no-opts b/test/wasm-only.fromasm.no-opts
index e8e2785d5..b1f72e6dc 100644
--- a/test/wasm-only.fromasm.no-opts
+++ b/test/wasm-only.fromasm.no-opts
@@ -769,6 +769,42 @@
(get_local $$waka)
)
)
+ (func $unreachable_leftovers (param $$0 i32) (param $$1 i32) (param $$2 i32)
+ (local $label i32)
+ (block $label$break$L1
+ (if
+ (get_local $$1)
+ (set_local $label
+ (i32.const 10)
+ )
+ (block
+ (if
+ (get_local $$2)
+ (block
+ (br $label$break$L1)
+ (return)
+ )
+ )
+ (i32.store
+ (get_local $$0)
+ (i32.const -2)
+ )
+ (return)
+ )
+ )
+ )
+ (if
+ (i32.eq
+ (get_local $label)
+ (i32.const 10)
+ )
+ (i32.store
+ (get_local $$0)
+ (i32.const -1)
+ )
+ )
+ (return)
+ )
(func $keepAlive
(call $loads)
(call $stores)
@@ -809,6 +845,11 @@
(i64.const 0)
)
)
+ (call $unreachable_leftovers
+ (i32.const 0)
+ (i32.const 0)
+ (i32.const 0)
+ )
)
(func $__emscripten_dceable_type_decls
(drop