diff options
author | Daniel Wirtz <dcode@dcode.io> | 2020-09-09 03:40:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 03:40:09 +0200 |
commit | 916ce6f1a9f7c85102a8c69f593b301c8df5d19d (patch) | |
tree | 93b22be9f2c0718248528d140b05221cb6878600 /test/multivalue.wast.fromBinary | |
parent | 0fdcf5b51a0c8c379b2d3ad8262aa22bb234f0e9 (diff) | |
download | binaryen-916ce6f1a9f7c85102a8c69f593b301c8df5d19d.tar.gz binaryen-916ce6f1a9f7c85102a8c69f593b301c8df5d19d.tar.bz2 binaryen-916ce6f1a9f7c85102a8c69f593b301c8df5d19d.zip |
Update reference types (#3084)
Align with the current state of the reference types proposal:
* Remove `nullref`
* Remove `externref` and `funcref` subtyping
* A `Literal` of a nullable reference type can now represent `null` (previously was type `nullref`)
* Update the tests and temporarily comment out those tests relying on subtyping
Diffstat (limited to 'test/multivalue.wast.fromBinary')
-rw-r--r-- | test/multivalue.wast.fromBinary | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/multivalue.wast.fromBinary b/test/multivalue.wast.fromBinary index 190194fcf..f4a8e20b7 100644 --- a/test/multivalue.wast.fromBinary +++ b/test/multivalue.wast.fromBinary @@ -6,7 +6,6 @@ (type $none_=>_f32_i64_i32 (func (result f32 i64 i32))) (type $none_=>_i32 (func (result i32))) (type $none_=>_i32_i64_f32 (func (result i32 i64 f32))) - (type $none_=>_i32_i64_nullref (func (result i32 i64 nullref))) (type $none_=>_f32 (func (result f32))) (import "env" "pair" (func $pair (result i32 i64))) (global $global$0 (mut i32) (i32.const 0)) @@ -391,19 +390,19 @@ ) ) (func $mv-if (result i32 i64 externref) - (local $0 (i32 i64 nullref)) + (local $0 (i32 i64 externref)) (local.set $0 - (if (result i32 i64 nullref) + (if (result i32 i64 externref) (i32.const 1) (tuple.make (i32.const 42) (i64.const 42) - (ref.null) + (ref.null extern) ) (tuple.make (i32.const 42) (i64.const 42) - (ref.null) + (ref.null extern) ) ) ) |