summaryrefslogtreecommitdiff
path: root/test/unit.fromasm.no-opts
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit.fromasm.no-opts')
-rw-r--r--test/unit.fromasm.no-opts18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/unit.fromasm.no-opts b/test/unit.fromasm.no-opts
index 511e310a3..074a44bfe 100644
--- a/test/unit.fromasm.no-opts
+++ b/test/unit.fromasm.no-opts
@@ -18,6 +18,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-to-int" (func $f64-to-int (param f64) (result i32)))
(import "asm2wasm" "f64-rem" (func $f64-rem (param f64 f64) (result f64)))
(import "env" "memory" (memory $0 256 256))
@@ -1986,6 +1987,22 @@
)
)
)
+ (func $call_emscripten_log
+ (call $emscripten_log)
+ (if
+ (i32.const 2)
+ (drop
+ (call $f64-to-int
+ (call $abort
+ (f64.const 0)
+ )
+ )
+ )
+ (drop
+ (i32.const 3)
+ )
+ )
+ )
(func $keepAlive
(drop
(call $sqrts
@@ -2009,6 +2026,7 @@
)
(call $indirectInSequence)
(call $emterpretify_assertions_safeHeap)
+ (call $call_emscripten_log)
)
(func $v
(nop)