blob: 9faca1143a97a7e34a5b5faf580e47f8c2d654d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
;; 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: )
;; CHECK: (func $0_2 (type $0)
;; CHECK-NEXT: (call $0)
;; CHECK-NEXT: )
|