diff options
Diffstat (limited to 'test/heap-types.wast')
-rw-r--r-- | test/heap-types.wast | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/heap-types.wast b/test/heap-types.wast index 84490d031..364d1b0a3 100644 --- a/test/heap-types.wast +++ b/test/heap-types.wast @@ -6,6 +6,13 @@ (field f32) (field $named f64) )) + ;; identical to $struct.A, so will be canonicalized with it, but field names + ;; are different + (type $struct.A.prime (struct + i32 + (field f32) + (field $othername f64) + )) (type $struct.B (struct (field i8) (field (mut i16)) @@ -52,6 +59,9 @@ (struct.get $struct.A $named (local.get $x)) ) (drop + (struct.get $struct.A.prime $othername (ref.null $struct.A.prime)) + ) + (drop (struct.get_u $struct.B 0 (local.get $tB)) ) (drop |