summaryrefslogtreecommitdiff
path: root/test/unit.wast.fromBinary
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-11-21 13:06:39 -0800
committerGitHub <noreply@github.com>2017-11-21 13:06:39 -0800
commit4da2ad6ef86ea21fa95bae10c5b74cbe16202c84 (patch)
treef73fa82427fb47725201a4547377cdc98ad7de09 /test/unit.wast.fromBinary
parent6cf7343bffa3d485161e221b23dfacd9243dec68 (diff)
downloadbinaryen-4da2ad6ef86ea21fa95bae10c5b74cbe16202c84.tar.gz
binaryen-4da2ad6ef86ea21fa95bae10c5b74cbe16202c84.tar.bz2
binaryen-4da2ad6ef86ea21fa95bae10c5b74cbe16202c84.zip
name function imports using name section (#1290)
Diffstat (limited to 'test/unit.wast.fromBinary')
-rw-r--r--test/unit.wast.fromBinary10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit.wast.fromBinary b/test/unit.wast.fromBinary
index 827fd5e6f..fc06a7c11 100644
--- a/test/unit.wast.fromBinary
+++ b/test/unit.wast.fromBinary
@@ -9,9 +9,9 @@
(type $7 (func (param f64) (result f64)))
(type $8 (func (result i64)))
(type $9 (func (param i32 i64)))
- (import "env" "_emscripten_asm_const_vi" (func $import$0))
- (import "asm2wasm" "f64-to-int" (func $import$1 (param f64) (result i32)))
- (import "asm2wasm" "f64-rem" (func $import$2 (param f64 f64) (result f64)))
+ (import "env" "_emscripten_asm_const_vi" (func $_emscripten_asm_const_vi))
+ (import "asm2wasm" "f64-to-int" (func $f64-to-int (param f64) (result i32)))
+ (import "asm2wasm" "f64-rem" (func $f64-rem (param f64 f64) (result f64)))
(table 10 anyfunc)
(elem (i32.const 0) $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg)
(memory $0 4096 4096)
@@ -153,7 +153,7 @@
(local $var$0 i32)
(local $var$1 f64)
(set_local $var$0
- (call $import$1
+ (call $f64-to-int
(get_local $var$1)
)
)
@@ -274,7 +274,7 @@
)
)
(func $frem (; 12 ;) (type $4) (result f64)
- (call $import$2
+ (call $f64-rem
(f64.const 5.5)
(f64.const 1.2)
)