summaryrefslogtreecommitdiff
path: root/test/heap-types.wast.fromBinary
diff options
context:
space:
mode:
Diffstat (limited to 'test/heap-types.wast.fromBinary')
-rw-r--r--test/heap-types.wast.fromBinary31
1 files changed, 29 insertions, 2 deletions
diff --git a/test/heap-types.wast.fromBinary b/test/heap-types.wast.fromBinary
index 4ee4be42a..09bf35258 100644
--- a/test/heap-types.wast.fromBinary
+++ b/test/heap-types.wast.fromBinary
@@ -1,9 +1,9 @@
(module
(type $struct.A (struct (field i32) (field f32) (field $named f64)))
- (type $struct.B (struct (field i8) (field (mut i16)) (field (ref $struct.A)) (field (mut (ref $struct.A)))))
(type $none_=>_none (func))
- (type $grandchild (struct (field i32) (field i64)))
+ (type $struct.B (struct (field i8) (field (mut i16)) (field (ref $struct.A)) (field (mut (ref $struct.A)))))
(type $vector (array (mut f64)))
+ (type $grandchild (struct (field i32) (field i64)))
(type $matrix (array (mut (ref null $vector))))
(type $struct.C (struct (field $named-mut (mut f32))))
(type $anyref_=>_none (func (param anyref)))
@@ -321,5 +321,32 @@
(func $unreachables-4
(unreachable)
)
+ (func $unreachables-array-1
+ (unreachable)
+ )
+ (func $unreachables-array-2
+ (drop
+ (ref.null $vector)
+ )
+ (unreachable)
+ )
+ (func $unreachables-array-3
+ (unreachable)
+ )
+ (func $unreachables-array-4
+ (drop
+ (ref.null $vector)
+ )
+ (unreachable)
+ )
+ (func $unreachables-array-5
+ (drop
+ (ref.null $vector)
+ )
+ (drop
+ (i32.const 2)
+ )
+ (unreachable)
+ )
)