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.asm.js | |
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.asm.js')
-rw-r--r-- | test/wasm-only.asm.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/test/wasm-only.asm.js b/test/wasm-only.asm.js index 8dc208372..eab63ba2b 100644 --- a/test/wasm-only.asm.js +++ b/test/wasm-only.asm.js @@ -223,7 +223,20 @@ function asm(global, env, buffer) { } return $waka | 0; } + function keepAlive() { + loads(); + stores(); + test(); + i64(imports()); + arg(i64(0)); + i64(call1(i64(0))); + i64(call2(i64(0))); + i64(returnCastConst()); + i64(ifValue64(i64(0), i64(0))); + ifValue32(0, 0) | 0; + switch64(i64(0)) | 0; + } - return { test64: test64, illegalParam : illegalParam, illegalResult: illegalResult }; + return { test64: test64, illegalParam : illegalParam, illegalResult: illegalResult, keepAlive: keepAlive }; } |