summaryrefslogtreecommitdiff
path: root/test/passes/remove-unused-module-elements_all-features.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/remove-unused-module-elements_all-features.wast')
-rw-r--r--test/passes/remove-unused-module-elements_all-features.wast4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/passes/remove-unused-module-elements_all-features.wast b/test/passes/remove-unused-module-elements_all-features.wast
index 8837f91a9..3b2b031ad 100644
--- a/test/passes/remove-unused-module-elements_all-features.wast
+++ b/test/passes/remove-unused-module-elements_all-features.wast
@@ -239,6 +239,10 @@
(drop (i32.const 0))
)
)
+(module ;; imported start cannot be removed
+ (import "env" "start" (func $start))
+ (start $start)
+)
(module ;; the function and the table can be removed
(type $0 (func (param f64) (result f64)))
(table 6 6 funcref)