summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-02-25 20:00:55 +0000
committerGitHub <noreply@github.com>2021-02-25 12:00:55 -0800
commitc64a50d46cd3b5d5c19411b3ac4d8f0ba10c2efd (patch)
tree70c8e20737b6e26bb46c34226dba7697be12295a /test
parent2a00fc6b0740ba0482c8e9748c05b3d87805a712 (diff)
downloadbinaryen-c64a50d46cd3b5d5c19411b3ac4d8f0ba10c2efd.tar.gz
binaryen-c64a50d46cd3b5d5c19411b3ac4d8f0ba10c2efd.tar.bz2
binaryen-c64a50d46cd3b5d5c19411b3ac4d8f0ba10c2efd.zip
[Wasm GC] Print Struct field names (#3608)
Diffstat (limited to 'test')
-rw-r--r--test/heap-types.wast.from-wast10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/heap-types.wast.from-wast b/test/heap-types.wast.from-wast
index ca45eb0af..ceef0739a 100644
--- a/test/heap-types.wast.from-wast
+++ b/test/heap-types.wast.from-wast
@@ -1,11 +1,11 @@
(module
- (type $struct.A (struct (field i32) (field f32) (field f64)))
+ (type $struct.A (struct (field i32) (field f32) (field $named f64)))
(type $struct.B (struct (field i8) (field (mut i16)) (field (ref null $struct.A)) (field (mut (ref null $struct.A)))))
(type $matrix (array (ref null $vector)))
(type $vector (array (mut f64)))
(type $anyref_=>_none (func (param anyref)))
(type $parent (struct ))
- (type $struct.C (struct (field (mut f32))))
+ (type $struct.C (struct (field $named-mut (mut f32))))
(type $none_=>_none (func))
(type $rtt_1_$parent_=>_none (func (param (rtt 1 $parent))))
(type $rtt_$parent_=>_none (func (param (rtt $parent))))
@@ -42,12 +42,12 @@
)
)
(drop
- (struct.get $struct.A 2
+ (struct.get $struct.A $named
(local.get $x)
)
)
(drop
- (struct.get $struct.A 2
+ (struct.get $struct.A $named
(local.get $x)
)
)
@@ -88,7 +88,7 @@
(i32.const 1)
)
)
- (struct.set $struct.C 0
+ (struct.set $struct.C $named-mut
(ref.null $struct.C)
(f32.const 100)
)