diff options
author | Alon Zakai <azakai@google.com> | 2021-06-09 14:46:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-09 14:46:21 -0700 |
commit | d8877922143219eada93568074f2a262de62d04f (patch) | |
tree | 5b5c46c4c41325643be07395bc5194df4793d928 /test/heap-types.wast.fromBinary | |
parent | cdc1bb3406f40bdab918749d020e0ef03942434d (diff) | |
download | binaryen-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.fromBinary | 3 |
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)) |