diff options
Diffstat (limited to 'test/wasm-only.fromasm')
-rw-r--r-- | test/wasm-only.fromasm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/wasm-only.fromasm b/test/wasm-only.fromasm index 86c9cfad9..a8d125d23 100644 --- a/test/wasm-only.fromasm +++ b/test/wasm-only.fromasm @@ -343,6 +343,31 @@ (i32.const 1) ) ) + (func $unreachable_leftovers (param $0 i32) (param $1 i32) (param $2 i32) + (block $__rjto$0 + (if + (i32.eqz + (get_local $1) + ) + (block + (nop) + (br_if $__rjto$0 + (get_local $2) + ) + (i32.store + (get_local $0) + (i32.const -2) + ) + (return) + (br $__rjto$0) + ) + ) + (i32.store + (get_local $0) + (i32.const -1) + ) + ) + ) (func $keepAlive (call $loads) (call $stores) @@ -383,6 +408,11 @@ (i64.const 0) ) ) + (call $unreachable_leftovers + (i32.const 0) + (i32.const 0) + (i32.const 0) + ) ) (func $legalstub$illegalParam (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64) (call $illegalParam |