summaryrefslogtreecommitdiff
path: root/test/typed-function-references.wast.fromBinary
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2021-02-19 13:44:20 -0800
committerGitHub <noreply@github.com>2021-02-19 13:44:20 -0800
commit611e6de8c850dce19c3be0a636977cc6151d69ba (patch)
treec9a7bfc776045083b752309719775d753a03e4ff /test/typed-function-references.wast.fromBinary
parente24c1f0c826db6dcd63fc015f961919657accce5 (diff)
downloadbinaryen-611e6de8c850dce19c3be0a636977cc6151d69ba.tar.gz
binaryen-611e6de8c850dce19c3be0a636977cc6151d69ba.tar.bz2
binaryen-611e6de8c850dce19c3be0a636977cc6151d69ba.zip
Support type use before definition in binaries (#3588)
Update parsing of binary type sections to use TypeBuilder to support uses before definitions. Now that both the binary and text parsers support out-of-order type uses, this PR also relaxes the logic for emitting types to allow uses to be emitted before definitions.
Diffstat (limited to 'test/typed-function-references.wast.fromBinary')
-rw-r--r--test/typed-function-references.wast.fromBinary2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/typed-function-references.wast.fromBinary b/test/typed-function-references.wast.fromBinary
index 0e4385c84..fb13b73c4 100644
--- a/test/typed-function-references.wast.fromBinary
+++ b/test/typed-function-references.wast.fromBinary
@@ -2,10 +2,10 @@
(type $none_=>_none (func))
(type $none_=>_anyref_f32_anyref_f32 (func (result anyref f32 anyref f32)))
(type $i32_=>_i32 (func (param i32) (result i32)))
+ (type $ref?|i32_->_i32|_=>_i32 (func (param (ref null $i32_=>_i32)) (result i32)))
(type $none_=>_eqref (func (result eqref)))
(type $none_=>_i32 (func (result i32)))
(type $none_=>_anyref (func (result anyref)))
- (type $ref?|i32_->_i32|_=>_i32 (func (param (ref null $i32_=>_i32)) (result i32)))
(type $none_=>_i32_ref?|none_->_anyref_f32_anyref_f32|_f64 (func (result i32 (ref null $none_=>_anyref_f32_anyref_f32) f64)))
(type $f64_=>_ref?|none_->_eqref| (func (param f64) (result (ref null $none_=>_eqref))))
(func $call-ref