summaryrefslogtreecommitdiff
path: root/test/heap-types.wast.fromBinary
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-06-09 14:46:21 -0700
committerGitHub <noreply@github.com>2021-06-09 14:46:21 -0700
commitd8877922143219eada93568074f2a262de62d04f (patch)
tree5b5c46c4c41325643be07395bc5194df4793d928 /test/heap-types.wast.fromBinary
parentcdc1bb3406f40bdab918749d020e0ef03942434d (diff)
downloadbinaryen-d8877922143219eada93568074f2a262de62d04f.tar.gz
binaryen-d8877922143219eada93568074f2a262de62d04f.tar.bz2
binaryen-d8877922143219eada93568074f2a262de62d04f.zip
[Wasm GC] Support struct.new in global initializers (#3930)
Diffstat (limited to 'test/heap-types.wast.fromBinary')
-rw-r--r--test/heap-types.wast.fromBinary3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/heap-types.wast.fromBinary b/test/heap-types.wast.fromBinary
index 314b3c29e..1e3cc9527 100644
--- a/test/heap-types.wast.fromBinary
+++ b/test/heap-types.wast.fromBinary
@@ -25,6 +25,9 @@
(global $rttgrandchild (rtt 2 $grandchild) (rtt.sub $grandchild
(global.get $rttchild)
))
+ (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))