xref: /llvm-project/llvm/test/tools/llvm-objcopy/ELF/decompress-debug-sections-unsupported-zlib.test (revision e18b7c7ae0c13909d7f1304aee8621781a3c27a0)
1# UNSUPPORTED: zlib
2# RUN: yaml2obj %s -o %t
3# RUN: not llvm-objcopy --decompress-debug-sections %t /dev/null 2>&1 | FileCheck %s -DFILE=%t
4
5# CHECK: error: '[[FILE]]': failed to decompress section '.debug_info': LLVM was not built with LLVM_ENABLE_ZLIB or did not find zlib at build time
6
7--- !ELF
8FileHeader:
9  Class:   ELFCLASS64
10  Data:    ELFDATA2LSB
11  Type:    ET_REL
12  Machine: EM_X86_64
13Sections:
14  - Type:         SHT_PROGBITS
15    Name:         .debug_info
16    Flags:        [ SHF_COMPRESSED ]
17    AddressAlign: 8
18    Content:      "010000000000000001000000000000000100000000000000789c63040000020002"
19