summaryrefslogtreecommitdiff
path: root/test/unit.fromasm.imprecise.no-opts
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-07-27 16:29:12 -0700
committerGitHub <noreply@github.com>2017-07-27 16:29:12 -0700
commit4d46a7e2c37299d5a9b9d9d6323ce9fca3a1cf3a (patch)
tree278f1da3868901fa8282651ac589c6acc534d535 /test/unit.fromasm.imprecise.no-opts
parent203b7f758c34bf38357ec770659713647585538e (diff)
downloadbinaryen-4d46a7e2c37299d5a9b9d9d6323ce9fca3a1cf3a.tar.gz
binaryen-4d46a7e2c37299d5a9b9d9d6323ce9fca3a1cf3a.tar.bz2
binaryen-4d46a7e2c37299d5a9b9d9d6323ce9fca3a1cf3a.zip
fix import type detection of calls in comma operators; when the parent is a comma, it can't be a coersion (or that would have been the parent), so there is no coercion, so the result type is none (#1115)
Diffstat (limited to 'test/unit.fromasm.imprecise.no-opts')
-rw-r--r--test/unit.fromasm.imprecise.no-opts18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/unit.fromasm.imprecise.no-opts b/test/unit.fromasm.imprecise.no-opts
index 70eece97d..b66c69cf7 100644
--- a/test/unit.fromasm.imprecise.no-opts
+++ b/test/unit.fromasm.imprecise.no-opts
@@ -17,6 +17,7 @@
(import "env" "print" (func $print (param i32)))
(import "env" "h" (func $h (param i32)))
(import "env" "return_int" (func $return_int (result i32)))
+ (import "env" "emscripten_log" (func $emscripten_log))
(import "asm2wasm" "f64-rem" (func $f64-rem (param f64 f64) (result f64)))
(import "env" "memory" (memory $0 256 256))
(import "env" "table" (table 25 25 anyfunc))
@@ -1970,6 +1971,22 @@
)
)
)
+ (func $call_emscripten_log
+ (call $emscripten_log)
+ (if
+ (i32.const 2)
+ (drop
+ (i32.trunc_s/f64
+ (call $abort
+ (f64.const 0)
+ )
+ )
+ )
+ (drop
+ (i32.const 3)
+ )
+ )
+ )
(func $keepAlive
(drop
(call $sqrts
@@ -1993,6 +2010,7 @@
)
(call $indirectInSequence)
(call $emterpretify_assertions_safeHeap)
+ (call $call_emscripten_log)
)
(func $v
(nop)