summaryrefslogtreecommitdiff
path: root/test/wasm-only.fromasm.imprecise.no-opts
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm-only.fromasm.imprecise.no-opts')
-rw-r--r--test/wasm-only.fromasm.imprecise.no-opts41
1 files changed, 41 insertions, 0 deletions
diff --git a/test/wasm-only.fromasm.imprecise.no-opts b/test/wasm-only.fromasm.imprecise.no-opts
index 2f891e715..4b079e33e 100644
--- a/test/wasm-only.fromasm.imprecise.no-opts
+++ b/test/wasm-only.fromasm.imprecise.no-opts
@@ -721,6 +721,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)
@@ -761,6 +797,11 @@
(i64.const 0)
)
)
+ (call $unreachable_leftovers
+ (i32.const 0)
+ (i32.const 0)
+ (i32.const 0)
+ )
)
(func $__emscripten_dceable_type_decls
(drop