summaryrefslogtreecommitdiff
path: root/test/metadce/ref-func.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/metadce/ref-func.wast')
-rw-r--r--test/metadce/ref-func.wast11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/metadce/ref-func.wast b/test/metadce/ref-func.wast
new file mode 100644
index 000000000..b7d2b8ac7
--- /dev/null
+++ b/test/metadce/ref-func.wast
@@ -0,0 +1,11 @@
+(module
+ (import "env" "f1" (func $f1))
+ (import "env" "f2" (func $f2))
+
+ (export "g" (global $g))
+ (export "f" (func $f))
+
+ (global $g funcref (ref.func $f1))
+
+ (func $f (result funcref) (ref.func $f2))
+)