blob: ab4c555abf212b63664d795e6010011571b24efe (
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
25
26
27
28
29
30
31
32
33
34
35
36
|
;; 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 -all -S -o - | filecheck %s
;; Test that we merge start functions. The first module here has none, but the
;; second and third do, so we'll first copy in the second's and then merge in
;; the third's.
(module
)
;; CHECK: (type $none_=>_none (func))
;; CHECK: (export "start" (func $start))
;; CHECK: (export "user" (func $user))
;; CHECK: (start $merged.start)
;; CHECK: (func $start (type $none_=>_none)
;; CHECK-NEXT: (drop
;; CHECK-NEXT: (i32.const 1)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK: (func $user (type $none_=>_none)
;; CHECK-NEXT: (call $start)
;; CHECK-NEXT: (call $start)
;; CHECK-NEXT: )
;; CHECK: (func $merged.start (type $none_=>_none)
;; CHECK-NEXT: (drop
;; CHECK-NEXT: (i32.const 1)
;; CHECK-NEXT: )
;; CHECK-NEXT: (drop
;; CHECK-NEXT: (i32.const 2)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
|