summaryrefslogtreecommitdiff
path: root/test/typed-function-references.wast.fromBinary
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-07-08 09:48:11 -0700
committerGitHub <noreply@github.com>2022-07-08 09:48:11 -0700
commit9c1314471d823796097a58dddd7aa2a558f91a93 (patch)
tree68bee6a601765e573cb4efe82fef3d29f573bab4 /test/typed-function-references.wast.fromBinary
parentb88bedb16c8177442916eb64ebb4886206aeccf0 (diff)
downloadbinaryen-9c1314471d823796097a58dddd7aa2a558f91a93.tar.gz
binaryen-9c1314471d823796097a58dddd7aa2a558f91a93.tar.bz2
binaryen-9c1314471d823796097a58dddd7aa2a558f91a93.zip
Port a recently-updated test to lit (#4779)
Diffstat (limited to 'test/typed-function-references.wast.fromBinary')
-rw-r--r--test/typed-function-references.wast.fromBinary133
1 files changed, 0 insertions, 133 deletions
diff --git a/test/typed-function-references.wast.fromBinary b/test/typed-function-references.wast.fromBinary
deleted file mode 100644
index fefe37405..000000000
--- a/test/typed-function-references.wast.fromBinary
+++ /dev/null
@@ -1,133 +0,0 @@
-(module
- (type $mixed_results (func (result anyref f32 anyref f32)))
- (type $none_=>_none (func))
- (type $i32-i32 (func (param i32) (result i32)))
- (type $=>eqref (func (result eqref)))
- (type $ref|$i32-i32|_=>_i32 (func (param (ref $i32-i32)) (result i32)))
- (type $ref?|$i32-i32|_=>_i32 (func (param (ref null $i32-i32)) (result i32)))
- (type $none_=>_i32 (func (result i32)))
- (type $f64_=>_ref_null<_->_eqref> (func (param f64) (result (ref null $=>eqref))))
- (type $=>anyref (func (result anyref)))
- (type $none_=>_i32_ref?|$mixed_results|_f64 (func (result i32 (ref null $mixed_results) f64)))
- (type $ref?|$mixed_results|_=>_none (func (param (ref null $mixed_results))))
- (elem declare func $call-ref $call-ref-more)
- (func $call-ref
- (call_ref
- (ref.func $call-ref)
- )
- )
- (func $return-call-ref
- (return_call_ref
- (ref.func $call-ref)
- )
- )
- (func $call-ref-more (param $0 i32) (result i32)
- (call_ref
- (i32.const 42)
- (ref.func $call-ref-more)
- )
- )
- (func $call_from-param (param $f (ref $i32-i32)) (result i32)
- (call_ref
- (i32.const 42)
- (local.get $f)
- )
- )
- (func $call_from-param-null (param $f (ref null $i32-i32)) (result i32)
- (call_ref
- (i32.const 42)
- (local.get $f)
- )
- )
- (func $call_from-local-null (result i32)
- (local $f (ref null $i32-i32))
- (local.set $f
- (ref.func $call-ref-more)
- )
- (call_ref
- (i32.const 42)
- (local.get $f)
- )
- )
- (func $ref-in-sig (param $0 f64) (result (ref null $=>eqref))
- (ref.null $=>eqref)
- )
- (func $type-only-in-tuple-local
- (local $x i32)
- (local $1 f64)
- (local $2 (ref null $=>anyref))
- (nop)
- )
- (func $type-only-in-tuple-block
- (local $0 (i32 (ref null $mixed_results) f64))
- (local $1 (ref null $mixed_results))
- (local $2 i32)
- (local.set $0
- (block $label$1 (result i32 (ref null $mixed_results) f64)
- (unreachable)
- )
- )
- (drop
- (block (result i32)
- (local.set $2
- (tuple.extract 0
- (local.get $0)
- )
- )
- (drop
- (block (result (ref null $mixed_results))
- (local.set $1
- (tuple.extract 1
- (local.get $0)
- )
- )
- (drop
- (tuple.extract 2
- (local.get $0)
- )
- )
- (local.get $1)
- )
- )
- (local.get $2)
- )
- )
- )
- (func $ref-types-first
- (local $r1 (ref null $mixed_results))
- (local $r2 (ref null $mixed_results))
- (local $r3 anyref)
- (local $r4 anyref)
- (local $r5 anyref)
- (local $r6 funcref)
- (local $i1 i32)
- (local $i2 i64)
- (local $i3 i64)
- (nop)
- )
- (func $mvp-types-first
- (local $i1 i32)
- (local $i2 i64)
- (local $i3 i64)
- (local $r1 (ref null $mixed_results))
- (local $r2 (ref null $mixed_results))
- (local $r3 anyref)
- (local $r4 anyref)
- (local $r5 anyref)
- (local $r6 funcref)
- (nop)
- )
- (func $mvp-types-first-param (param $r0 (ref null $mixed_results))
- (local $i1 i32)
- (local $i2 i64)
- (local $i3 i64)
- (local $r1 (ref null $mixed_results))
- (local $r2 (ref null $mixed_results))
- (local $r3 anyref)
- (local $r4 anyref)
- (local $r5 anyref)
- (local $r6 funcref)
- (nop)
- )
-)
-