[lit] Remove LitTestCase
[llvm-complete.git] / test / tools / llvm-objcopy / ELF / discard-locals-rel.test
blob05e1acf6b1d8cb1fd5a16c158365ef51213def1a
1 # RUN: yaml2obj %s > %t
2 # RUN: not llvm-objcopy --discard-locals %t %t2 2>&1 | FileCheck %s
4 !ELF
5 FileHeader:
6   Class:           ELFCLASS64
7   Data:            ELFDATA2LSB
8   Type:            ET_REL
9   Machine:         EM_X86_64
10 Sections:
11   - Name:            .text
12     Type:            SHT_PROGBITS
13   - Name:            .rel.text
14     Type:            SHT_REL
15     Link:            .symtab
16     Info:            .text
17     Relocations:
18       - Offset: 0x1000
19         Symbol: .L.rel
20         Type:   R_X86_64_PC32
21 Symbols:
22   Local:
23     - Name:     .L.rel
24       Type:     STT_FUNC
25       Section:  .text
27 # CHECK: not stripping symbol '.L.rel' because it is named in a relocation.