summaryrefslogtreecommitdiff
path: root/test/importedSignCast.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-02-21 14:09:33 -0800
committerGitHub <noreply@github.com>2017-02-21 14:09:33 -0800
commit38a029f5b697878d13e41d5ecdc6c5fa69837b77 (patch)
tree1baa1835b961922cfa7c14906248e1170d2452db /test/importedSignCast.fromasm.imprecise
parentc27040e315f75f5b5c50078e539714973dc21d12 (diff)
downloadbinaryen-38a029f5b697878d13e41d5ecdc6c5fa69837b77.tar.gz
binaryen-38a029f5b697878d13e41d5ecdc6c5fa69837b77.tar.bz2
binaryen-38a029f5b697878d13e41d5ecdc6c5fa69837b77.zip
fix asm2wasm import type setting - set the type of used calls based o… (#920)
* fix asm2wasm import type setting - set the type of used calls based on the context, early, so it's valid in the optimizer
Diffstat (limited to 'test/importedSignCast.fromasm.imprecise')
-rw-r--r--test/importedSignCast.fromasm.imprecise17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/importedSignCast.fromasm.imprecise b/test/importedSignCast.fromasm.imprecise
new file mode 100644
index 000000000..ebebba81d
--- /dev/null
+++ b/test/importedSignCast.fromasm.imprecise
@@ -0,0 +1,17 @@
+(module
+ (type $FUNCSIG$ii (func (param i32) (result i32)))
+ (import "env" "_emscripten_glIsTexture" (func $gm (param i32) (result i32)))
+ (import "env" "memory" (memory $0 256 256))
+ (import "env" "table" (table 1 1 anyfunc))
+ (import "env" "memoryBase" (global $memoryBase i32))
+ (import "env" "tableBase" (global $tableBase i32))
+ (elem (get_global $tableBase) $gm)
+ (export "func" (func $func))
+ (func $func
+ (drop
+ (call $gm
+ (i32.const 0)
+ )
+ )
+ )
+)