diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/heap-types.wast | 14 | ||||
-rw-r--r-- | test/heap-types.wast.from-wast | 16 | ||||
-rw-r--r-- | test/heap-types.wast.fromBinary | 8 | ||||
-rw-r--r-- | test/heap-types.wast.fromBinary.noDebugInfo | 10 |
4 files changed, 44 insertions, 4 deletions
diff --git a/test/heap-types.wast b/test/heap-types.wast index 0f8c3840c..f62003da5 100644 --- a/test/heap-types.wast +++ b/test/heap-types.wast @@ -356,6 +356,20 @@ (unreachable) ) ) + (func $unreachables-array-6 + (drop + (array.len $vector + (unreachable) + ) + ) + ) + (func $unreachables-7 + (drop + (struct.new_default_with_rtt $struct.A + (unreachable) + ) + ) + ) (func $array-copy (param $x (ref $vector)) (param $y (ref null $vector)) (array.copy $vector $vector (local.get $x) diff --git a/test/heap-types.wast.from-wast b/test/heap-types.wast.from-wast index e6bd0f31e..ddc590ce7 100644 --- a/test/heap-types.wast.from-wast +++ b/test/heap-types.wast.from-wast @@ -1,8 +1,8 @@ (module (type $struct.A (struct (field i32) (field f32) (field $named f64))) + (type $none_=>_none (func)) (type $struct.B (struct (field i8) (field (mut i16)) (field (ref $struct.A)) (field (mut (ref $struct.A))))) (type $vector (array (mut f64))) - (type $none_=>_none (func)) (type $grandchild (struct (field i32) (field i64))) (type $struct.C (struct (field $named-mut (mut f32)))) (type $matrix (array (mut (ref null $vector)))) @@ -445,6 +445,20 @@ (unreachable) ) ) + (func $unreachables-array-6 + (drop + (block + (unreachable) + ) + ) + ) + (func $unreachables-7 + (drop + (block + (unreachable) + ) + ) + ) (func $array-copy (param $x (ref $vector)) (param $y (ref null $vector)) (array.copy $vector $vector (local.get $x) diff --git a/test/heap-types.wast.fromBinary b/test/heap-types.wast.fromBinary index d50532334..74c47eddf 100644 --- a/test/heap-types.wast.fromBinary +++ b/test/heap-types.wast.fromBinary @@ -1,8 +1,8 @@ (module (type $struct.A (struct (field i32) (field f32) (field $named f64))) + (type $none_=>_none (func)) (type $struct.B (struct (field i8) (field (mut i16)) (field (ref $struct.A)) (field (mut (ref $struct.A))))) (type $vector (array (mut f64))) - (type $none_=>_none (func)) (type $grandchild (struct (field i32) (field i64))) (type $matrix (array (mut (ref null $vector)))) (type $struct.C (struct (field $named-mut (mut f32)))) @@ -408,6 +408,12 @@ ) (unreachable) ) + (func $unreachables-array-6 + (unreachable) + ) + (func $unreachables-7 + (unreachable) + ) (func $array-copy (param $x (ref $vector)) (param $y (ref null $vector)) (array.copy $vector $vector (local.get $x) diff --git a/test/heap-types.wast.fromBinary.noDebugInfo b/test/heap-types.wast.fromBinary.noDebugInfo index 3d1f00a7c..66caa798a 100644 --- a/test/heap-types.wast.fromBinary.noDebugInfo +++ b/test/heap-types.wast.fromBinary.noDebugInfo @@ -1,8 +1,8 @@ (module (type ${i32_f32_f64} (struct (field i32) (field f32) (field f64))) + (type $none_=>_none (func)) (type ${i8_mut:i16_ref|{i32_f32_f64}|_mut:ref|{i32_f32_f64}|} (struct (field i8) (field (mut i16)) (field (ref ${i32_f32_f64})) (field (mut (ref ${i32_f32_f64}))))) (type $[mut:f64] (array (mut f64))) - (type $none_=>_none (func)) (type ${i32_i64} (struct (field i32) (field i64))) (type $[mut:ref?|[mut:f64]|] (array (mut (ref null $[mut:f64])))) (type ${mut:f32} (struct (field (mut f32)))) @@ -408,7 +408,13 @@ ) (unreachable) ) - (func $17 (param $0 (ref $[mut:f64])) (param $1 (ref null $[mut:f64])) + (func $17 + (unreachable) + ) + (func $18 + (unreachable) + ) + (func $19 (param $0 (ref $[mut:f64])) (param $1 (ref null $[mut:f64])) (array.copy $[mut:f64] $[mut:f64] (local.get $0) (i32.const 11) |