diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-10-13 18:07:29 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-10-14 10:00:06 -0700 |
commit | 5881b541a4b276dcd5576aa065e4fb860531fc7b (patch) | |
tree | 84f0d20d21375d2f18987a193c7a9ce4489fb200 /test/wasm-only.fromasm.no-opts | |
parent | 0dee67086c9340380975d6e7469fe223a5c8b924 (diff) | |
download | binaryen-5881b541a4b276dcd5576aa065e4fb860531fc7b.tar.gz binaryen-5881b541a4b276dcd5576aa065e4fb860531fc7b.tar.bz2 binaryen-5881b541a4b276dcd5576aa065e4fb860531fc7b.zip |
run remove-unused-functions by default
Diffstat (limited to 'test/wasm-only.fromasm.no-opts')
-rw-r--r-- | test/wasm-only.fromasm.no-opts | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/wasm-only.fromasm.no-opts b/test/wasm-only.fromasm.no-opts index 4d52a2eab..1c3a0bf5c 100644 --- a/test/wasm-only.fromasm.no-opts +++ b/test/wasm-only.fromasm.no-opts @@ -14,6 +14,7 @@ (export "test64" (func $test64)) (export "illegalParam" (func $legalstub$illegalParam)) (export "illegalResult" (func $legalstub$illegalResult)) + (export "keepAlive" (func $keepAlive)) (func $loads (local $i i32) (local $f f32) @@ -759,6 +760,47 @@ (get_local $$waka) ) ) + (func $keepAlive + (call $loads) + (call $stores) + (call $test) + (drop + (call $imports) + ) + (call $arg + (i64.const 0) + ) + (drop + (call $call1 + (i64.const 0) + ) + ) + (drop + (call $call2 + (i64.const 0) + ) + ) + (drop + (call $returnCastConst) + ) + (drop + (call $ifValue64 + (i64.const 0) + (i64.const 0) + ) + ) + (drop + (call $ifValue32 + (i32.const 0) + (i32.const 0) + ) + ) + (drop + (call $switch64 + (i64.const 0) + ) + ) + ) (func $legalstub$illegalParam (param $0 i32) (param $1 i32) (param $2 i32) (param $3 f64) (call $illegalParam (get_local $0) |