[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / test / tools / llvm-objcopy / wasm / basic-only-section.test
blobf4b7d91a12367179362fad767246d35b39db0ef7
1 ## Test --only-section.
2 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-objcopy --only-section=producers %t %t2
4 # RUN: obj2yaml %t2 | FileCheck --implicit-check-not TYPE --implicit-check-not linking %s
6 ## Test that it's the same with only-section + keep-section (for the same section).
7 # RUN: llvm-objcopy --only-section=producers --keep-section=producers %t %t2
8 # RUN: obj2yaml %t2 | FileCheck --implicit-check-not TYPE --implicit-check-not linking %s
10 ## Also test that only-section overrides remove-section.
11 # RUN: llvm-objcopy --only-section=producers --remove-section=producers %t %t2
12 # RUN: obj2yaml %t2 | FileCheck --implicit-check-not linking %s
14 ## This file has both known and custom sections. Check that only the producers section is left.
15 # CHECK:      Sections:
16 # CHECK-NEXT:   - Type: CUSTOM
17 # CHECK-NEXT:     Name: producers
18 # CHECK-NEXT:     Tools:
20 ## Test that only-section + keep-section keeps both sections.
21 # RUN: llvm-objcopy --only-section=producers --keep-section=linking %t %t2
22 # RUN: obj2yaml %t2 | FileCheck --implicit-check-not=TYPE --check-prefix=KEEP %s
23 # KEEP: Name: linking
24 # KEEP: Name: producers
26 --- !WASM
27 FileHeader:
28   Version: 0x00000001
29 Sections:
30   - Type: TYPE
31     Signatures:
32       - Index: 0
33         ParamTypes:
34           - I32
35         ReturnTypes:
36           - F32
37   - Type: CUSTOM
38     Name: linking
39     Version: 2
40   - Type: CUSTOM
41     Name: producers
42     Tools:
43       - Name:   clang
44         Version: 9.0.0