summaryrefslogtreecommitdiff
path: root/test/heap-types.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/heap-types.wast')
-rw-r--r--test/heap-types.wast5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/heap-types.wast b/test/heap-types.wast
index 614bbb1c5..a36f12daf 100644
--- a/test/heap-types.wast
+++ b/test/heap-types.wast
@@ -187,4 +187,9 @@
(if (ref.is_data (local.get $x)) (unreachable))
(if (ref.is_i31 (local.get $x)) (unreachable))
)
+ (func $ref.as_X (param $x anyref)
+ (drop (ref.as_func (local.get $x)))
+ (drop (ref.as_data (local.get $x)))
+ (drop (ref.as_i31 (local.get $x)))
+ )
)