[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / llvm / test / tools / llvm-objcopy / wasm / basic-keep.test
bloba32f08e6d79f3f5e53fd7a045a4e59271e02f2f6
1 ## Test that --keep-section keeps a debug section when stripping.
2 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-objcopy --strip-all --keep-section=.debug_info %t %t2
4 # RUN: obj2yaml %t2 | FileCheck --implicit-check-not linking %s
6 # CHECK:      Sections:
7 # CHECK:        Name: .debug_info
8 # CHECK-NEXT:   Payload: DEADBEEF
10 ## Test that keep overrides an explicit removal.
11 # RUN: llvm-objcopy --remove-section=.debug_info --keep-section=.debug_info %t %t2
12 # RUN: obj2yaml %t2 | FileCheck %s --check-prefix=KEEP
14 # KEEP: Sections:
15 # KEEP:   Name: .debug_info
17 --- !WASM
18 FileHeader:
19   Version: 0x00000001
20 Sections:
21   - Type: CUSTOM
22     Name: linking
23     Version: 2
24   - Type: CUSTOM
25     Name: .debug_info
26     Payload: DEADBEEF