[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / tools / llvm-objcopy / wasm / strip-reloc.test
blob4c8d1ba670447f8923817dee4bc25a56940b6180
1 ## Test that linking, reloc, and name sections are stripped by --strip-all.
3 ## These get a separate test because ObjectYaml understands relocs and names,
4 ## so the test needs to be a valid object with relocs and names.
6 # RUN: yaml2obj %s -o %t
7 # RUN: llvm-objcopy --strip-all %t %t2
8 # RUN: obj2yaml %t2 | FileCheck --implicit-check-not=Type: %s
10 ## Check that the known sections are still present.
11 # CHECK: Sections:
12 # CHECK: - Type: TYPE
13 # CHECK: - Type: FUNCTION
14 # CHECK: - Type: CODE
15 ## Check that there are still functions in the code section.
16 # CHECK: Functions:
18 --- !WASM
19 FileHeader:
20   Version:         0x00000001
21 Sections:
22   - Type:            TYPE
23     Signatures:
24       - Index:           0
25         ParamTypes:      []
26         ReturnTypes:     []
27   - Type:            FUNCTION
28     FunctionTypes:   [ 0 ]
29   - Type:            CODE
30     Relocations:
31       - Type:            R_WASM_FUNCTION_INDEX_LEB
32         Index:           0
33         Offset:          0x4
34     Functions:
35       - Index:           0
36         Locals:          []
37         Body:            1080808080000B
38   - Type:            CUSTOM
39     Name:            linking
40     Version:         2
41     SymbolTable:
42       - Index:           0
43         Kind:            FUNCTION
44         Name:            foo
45         Flags:           [ BINDING_LOCAL ]
46         Function:        0
47   - Type:            CUSTOM
48     Name:            name
49     FunctionNames:
50        - Index:          0
51          Name:           foo