]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/tools/llvm-objcopy/basic-only-keep-debug.test
Vendor import of llvm trunk r338150:
[FreeBSD/FreeBSD.git] / test / tools / llvm-objcopy / basic-only-keep-debug.test
1 # NOTE: This test is only intended to be valid as long as --only-keep-debug is
2 #       implemented as a NOP. This test should fail when that changes and you
3 #       will need to update this test.
4
5 # RUN: yaml2obj %s > %t
6 # RUN: llvm-objcopy %t %t2
7 # RUN: llvm-objcopy --only-keep-debug %t %t3
8 # RUN: cmp %t2 %t3
9
10 !ELF
11 FileHeader:
12   Class:           ELFCLASS64
13   Data:            ELFDATA2LSB
14   Type:            ET_EXEC
15   Machine:         EM_X86_64
16 Sections:
17   - Name:            .text
18     Type:            SHT_PROGBITS
19     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
20     Content:         "DEADBEEF"