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/vacuum-intrinsics.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/vacuum-intrinsics.wast')
-rw-r--r-- | test/lit/passes/vacuum-intrinsics.wast | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lit/passes/vacuum-intrinsics.wast b/test/lit/passes/vacuum-intrinsics.wast index 9d9a25d01..91c24f553 100644 --- a/test/lit/passes/vacuum-intrinsics.wast +++ b/test/lit/passes/vacuum-intrinsics.wast @@ -2,13 +2,13 @@ ;; RUN: wasm-opt %s --vacuum -all -S -o - | filecheck %s (module - ;; CHECK: (import "binaryen-intrinsics" "call.without.effects" (func $call.without.effects (param funcref) (result i32))) + ;; CHECK: (import "binaryen-intrinsics" "call.without.effects" (func $call.without.effects (type $funcref_=>_i32) (param funcref) (result i32))) (import "binaryen-intrinsics" "call.without.effects" (func $call.without.effects (param funcref) (result i32))) - ;; CHECK: (import "binaryen-intrinsics" "call.without.effects" (func $call.without.effects-fj (param f32 funcref) (result i64))) + ;; CHECK: (import "binaryen-intrinsics" "call.without.effects" (func $call.without.effects-fj (type $f32_funcref_=>_i64) (param f32 funcref) (result i64))) (import "binaryen-intrinsics" "call.without.effects" (func $call.without.effects-fj (param f32) (param funcref) (result i64))) - ;; CHECK: (import "binaryen-intrinsics" "call.without.effects" (func $call.without.effects-ref (param funcref) (result (ref any)))) + ;; CHECK: (import "binaryen-intrinsics" "call.without.effects" (func $call.without.effects-ref (type $funcref_=>_ref|any|) (param funcref) (result (ref any)))) (import "binaryen-intrinsics" "call.without.effects" (func $call.without.effects-ref (param funcref) (result (ref any)))) ;; CHECK: (func $used (type $none_=>_i32) (result i32) |