diff options
author | Alon Zakai <azakai@google.com> | 2023-05-17 09:42:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 16:42:58 +0000 |
commit | 071431bac6269ff8bcfa95194c94446314a2394d (patch) | |
tree | 455511db1f4c934d205b9b55ba3e568057e52dce /test/lit/passes/gufa-refs.wast | |
parent | aab5f274773f4e1567b02e6950b4d22119cf801d (diff) | |
download | binaryen-071431bac6269ff8bcfa95194c94446314a2394d.tar.gz binaryen-071431bac6269ff8bcfa95194c94446314a2394d.tar.bz2 binaryen-071431bac6269ff8bcfa95194c94446314a2394d.zip |
Print function types on function imports in the text format (#5727)
The function type should be printed there just like for non-imported
functions.
Diffstat (limited to 'test/lit/passes/gufa-refs.wast')
-rw-r--r-- | test/lit/passes/gufa-refs.wast | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lit/passes/gufa-refs.wast b/test/lit/passes/gufa-refs.wast index 89b249f2a..06998072b 100644 --- a/test/lit/passes/gufa-refs.wast +++ b/test/lit/passes/gufa-refs.wast @@ -14,7 +14,7 @@ ;; CHECK: (type $none_=>_ref|any| (func (result (ref any)))) - ;; CHECK: (import "a" "b" (func $import (result i32))) + ;; CHECK: (import "a" "b" (func $import (type $none_=>_i32) (result i32))) (import "a" "b" (func $import (result i32))) ;; CHECK: (func $no-non-null (type $none_=>_ref|any|) (result (ref any)) @@ -2466,7 +2466,7 @@ ;; CHECK: (type $none_=>_ref|eq| (func (result (ref eq)))) - ;; CHECK: (import "a" "b" (func $import (result i32))) + ;; CHECK: (import "a" "b" (func $import (type $none_=>_i32) (result i32))) (import "a" "b" (func $import (result i32))) ;; CHECK: (export "test-cones" (func $test-cones)) @@ -3520,7 +3520,7 @@ ;; CHECK: (type $none_=>_none (func)) - ;; CHECK: (import "a" "b" (func $import (result i32))) + ;; CHECK: (import "a" "b" (func $import (type $none_=>_i32) (result i32))) (import "a" "b" (func $import (result i32))) ;; CHECK: (func $test (type $none_=>_none) @@ -3571,7 +3571,7 @@ ;; CHECK: (type $none_=>_ref|$B| (func (result (ref $B)))) - ;; CHECK: (import "a" "b" (func $import (result i32))) + ;; CHECK: (import "a" "b" (func $import (type $none_=>_i32) (result i32))) (import "a" "b" (func $import (result i32))) ;; CHECK: (func $foo (type $none_=>_ref|$B|) (result (ref $B)) @@ -4456,7 +4456,7 @@ ;; CHECK: (type $none_=>_i32 (func (result i32))) - ;; CHECK: (import "a" "b" (func $import (result i32))) + ;; CHECK: (import "a" "b" (func $import (type $none_=>_i32) (result i32))) (import "a" "b" (func $import (result i32))) ;; CHECK: (global $func (ref func) (ref.func $reffed-in-global-code)) @@ -5225,7 +5225,7 @@ ;; CHECK: (import "a" "b" (global $A (ref $A))) (import "a" "b" (global $A (ref $A))) - ;; CHECK: (import "a" "c" (func $A (result (ref $A)))) + ;; CHECK: (import "a" "c" (func $A (type $none_=>_ref|$A|) (result (ref $A)))) (import "a" "c" (func $A (result (ref $A)))) ;; CHECK: (global $mut_A (ref $A) (struct.new $A |