[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / tools / llvm-objcopy / wasm / strip-all.test
blob9a9015713242c818c81d1f0e5836d9085711cf0d
1 ## Test that --strip-all removes debug, linking, and producers sections, but not
2 ## known or unknown-custom sections.
3 # RUN: yaml2obj %s -o %t
4 # RUN: llvm-objcopy --strip-all %t %t2
5 # RUN: obj2yaml %t2 | FileCheck --implicit-check-not=Type: %s
7 # CHECK:      Sections:
8 # CHECK-NEXT:   - Type: TYPE
9 # CHECK:        - Type: CUSTOM
10 # CHECK-NEXT:        Name: foo
12 --- !WASM
13 FileHeader:
14   Version: 0x00000001
15 Sections:
16   - Type: TYPE
17     Signatures:
18       - Index: 0
19         ParamTypes: []
20         ReturnTypes: []
21   - Type: CUSTOM
22     Name: linking
23     Version: 2
24   - Type: CUSTOM
25     Name: producers
26     Tools:
27       - Name:   clang
28         Version: 9.0.0
29   - Type: CUSTOM
30     Name: .debug_info
31     Payload: DEADBEEF
32   - Type: CUSTOM
33     Name: foo
34     Payload: CAFE