summaryrefslogtreecommitdiff
path: root/test/passes/remove-imports.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/remove-imports.wast')
-rw-r--r--test/passes/remove-imports.wast13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/passes/remove-imports.wast b/test/passes/remove-imports.wast
index 00190a32d..babd60fdc 100644
--- a/test/passes/remove-imports.wast
+++ b/test/passes/remove-imports.wast
@@ -1,11 +1,18 @@
(module
(memory 1024 1024)
+ (type $FUNCSIG$v (func))
+ (type $FUNCSIG$i (func (result i32)))
+ (type $FUNCSIG$d (func (result f64)))
(import $waka "somewhere" "waka")
(import $waka-ret "somewhere" "waka-ret" (result i32))
(import $waka-ret-d "somewhere" "waka-ret-d" (result f64))
- (func $nada
+ (func $nada (type $FUNCSIG$v)
(call_import $waka)
- (call_import $waka-ret)
- (call_import $waka-ret-d)
+ (drop
+ (call_import $waka-ret)
+ )
+ (drop
+ (call_import $waka-ret-d)
+ )
)
)