summaryrefslogtreecommitdiff
path: root/test/unit.fromasm.imprecise.no-opts
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-11-17 14:20:43 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-12-07 16:50:04 -1000
commit7bd25106baf71882badec1e03f45f6cae5d31560 (patch)
tree2b0c72dd8ff670d26ab502c4cf89b205aa228552 /test/unit.fromasm.imprecise.no-opts
parent98e9e604c7e2e4f928abe8f05691df90cddf09e4 (diff)
downloadbinaryen-7bd25106baf71882badec1e03f45f6cae5d31560.tar.gz
binaryen-7bd25106baf71882badec1e03f45f6cae5d31560.tar.bz2
binaryen-7bd25106baf71882badec1e03f45f6cae5d31560.zip
support asm.js numeric exports by creating a global and exporting that
Diffstat (limited to 'test/unit.fromasm.imprecise.no-opts')
-rw-r--r--test/unit.fromasm.imprecise.no-opts2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit.fromasm.imprecise.no-opts b/test/unit.fromasm.imprecise.no-opts
index c306d144b..e16dd92f8 100644
--- a/test/unit.fromasm.imprecise.no-opts
+++ b/test/unit.fromasm.imprecise.no-opts
@@ -28,6 +28,7 @@
(global $tempDoublePtr (mut i32) (get_global $tempDoublePtr$asm2wasm$import))
(global $n (mut i32) (get_global $n$asm2wasm$import))
(global $STACKTOP (mut i32) (get_global $STACKTOP$asm2wasm$import))
+ (global $exportedNumber i32 (i32.const 42))
(export "big_negative" (func $big_negative))
(export "pick" (func $exportMe))
(export "doubleCompares" (func $doubleCompares))
@@ -71,6 +72,7 @@
(export "dropIgnoredImportsInIf" (func $dropIgnoredImportsInIf))
(export "relooperJumpThreading_irreducible" (func $relooperJumpThreading_irreducible))
(export "store_fround" (func $store_fround))
+ (export "exportedNumber" (global $exportedNumber))
(func $big_negative
(local $temp f64)
(set_local $temp