summaryrefslogtreecommitdiff
path: root/test/lit/basic/imported-params.wast
blob: c81bf0870dd87c5c29191e7376e2650682e89770 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited.

;; Test that parameter names are preserved for imported functions

;; RUN: wasm-opt %s -S -o - | filecheck %s

(module
 (import "" "" (func (param i32 i64) (param $x i32) (param $y i64) (param f32 f64)))
 (import "" "" (func (param $x i32) (param f32 f64) (param $y i64)))
 (import "" "" (func (param $"" i32)))
)
;; CHECK:      (type $0 (func (param i32 i64 i32 i64 f32 f64)))

;; CHECK:      (type $1 (func (param i32 f32 f64 i64)))

;; CHECK:      (type $2 (func (param i32)))

;; CHECK:      (import "" "" (func $fimport$0 (param i32 i64) (param $x i32) (param $y i64) (param f32 f64)))

;; CHECK:      (import "" "" (func $fimport$1 (param $x i32) (param f32 f64) (param $y i64)))

;; CHECK:      (import "" "" (func $fimport$2 (param $"" i32)))