blob: 9ed80ae7c6dbd6e7acad33cdf823a8cb43661994 (
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
|
;; Check that --emit-module-names without -g strips function names but generates
;; and keeps the module names.
;; RUN: wasm-split %s --keep-funcs=foo -o1 %t.primary.wasm -o2 %t.secondary.wasm --emit-module-names
;; RUN: wasm-dis %t.primary.wasm -o - | filecheck %s --check-prefix=PRIMARY
;; RUN: wasm-dis %t.secondary.wasm -o - | filecheck %s --check-prefix=SECONDARY
;; PRIMARY: (module $module-names.wast.tmp.primary.wasm
;; PRIMARY: (func $0
;; PRIMARY-NOT: $foo
;; SECONDARY: (module $module-names.wast.tmp.secondary.wasm
;; SECONDARY: (func $0
;; SECONDARY-NOT: $bar
(module
(func $foo
(nop)
)
(func $bar
(nop)
)
)
|