blob: 528b20d0eed63fac24f1e7542894ef9f48a4e286 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited.
;; RUN: wasm-merge %s first %s.second second %s.third third --rename-export-conflicts -all -S -o - | filecheck %s
;; Test chains of imports / exports: the first module export a function,
;; which is reexported by the second and imported by the third.
(module
(func (export "f"))
)
;; CHECK: (type $0 (func))
;; CHECK: (export "f" (func $0))
;; CHECK: (export "g" (func $0))
;; CHECK: (export "h" (func $0_2))
;; CHECK: (func $0 (type $0)
;; CHECK-NEXT: (nop)
;; CHECK-NEXT: )
;; CHECK: (func $0_2 (type $0)
;; CHECK-NEXT: (call $0)
;; CHECK-NEXT: )
|