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.wast6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/heap-types.wast b/test/heap-types.wast
index 0445c97d5..06ceceb3b 100644
--- a/test/heap-types.wast
+++ b/test/heap-types.wast
@@ -40,6 +40,12 @@
(type $nested-child-struct (struct (field (mut (ref $child)))))
(type $nested-child-array (array (mut (ref $child))))
+ (global $struct.new-in-global (ref $struct.A)
+ (struct.new_default_with_rtt $struct.A
+ (rtt.canon $struct.A)
+ )
+ )
+
(func $structs (param $x (ref $struct.A)) (result (ref $struct.B))
(local $tA (ref null $struct.A))
(local $tB (ref null $struct.B))