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.imprecise | |
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.imprecise')
-rw-r--r-- | test/wasm-only.fromasm.imprecise | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/wasm-only.fromasm.imprecise b/test/wasm-only.fromasm.imprecise index 77dc70050..0289372eb 100644 --- a/test/wasm-only.fromasm.imprecise +++ b/test/wasm-only.fromasm.imprecise @@ -14,6 +14,7 @@ (export "test64" (func $test64)) (export "illegalParam" (func $legalstub$illegalParam)) (export "illegalResult" (func $legalstub$result)) + (export "keepAlive" (func $keepAlive)) (func $loads (nop) ) @@ -267,6 +268,47 @@ (i32.const 1) ) ) + (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) |