blob: dd8598b0b95e563101403ee12bbdf4dd53f36c78 (
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
|
;; RUN: wasm-split %s --keep-funcs=bar -o1 %t.1.wasm -o2 %t.2.wasm --placeholdermap
;; RUN: filecheck %s --check-prefix MAP < %t.1.wasm.placeholders
;; RUN: wasm-dis %t.1.wasm | filecheck %s --check-prefix PRIMARY
;; MAP: 0:foo
;; MAP-NEXT: 2:baz
;; MAP-NOT: bar
;; Check that the names have been stripped.
;; PRIMARY: (func $0
(module
(table $table 3 3 funcref)
(elem $table (i32.const 0) $foo $bar $baz)
(func $foo
(nop)
)
(func $bar
(nop)
)
(func $baz
(nop)
)
)
|