summaryrefslogtreecommitdiff
path: root/test/passes/duplicate-function-elimination_all-features.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/duplicate-function-elimination_all-features.wast')
-rw-r--r--test/passes/duplicate-function-elimination_all-features.wast12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/passes/duplicate-function-elimination_all-features.wast b/test/passes/duplicate-function-elimination_all-features.wast
new file mode 100644
index 000000000..587271728
--- /dev/null
+++ b/test/passes/duplicate-function-elimination_all-features.wast
@@ -0,0 +1,12 @@
+;; --dupliate-function-elimination should not remove functions used in ref.func.
+(module
+ (func $0 (result i32)
+ (i32.const 0)
+ )
+ (func $1 (result i32)
+ (i32.const 0)
+ )
+ (func $test (result funcref)
+ (ref.func $1)
+ )
+)