[ELF] Refine isExported/isPreemptible condition
[llvm-project.git] / lld / test / ELF / compress-sections-err.s
blob1b46aea12e9cd53f47fc1c63f04d63ff8cd4ddb9
1 # REQUIRES: x86
2 # UNSUPPORTED: zlib
4 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
5 # RUN: ld.lld %t.o --compress-debug-sections=zlib --compress-debug-sections=none -o /dev/null 2>&1 | count 0
6 # RUN: not ld.lld %t.o --compress-debug-sections=zlib -o /dev/null 2>&1 | \
7 # RUN: FileCheck %s --implicit-check-not=error:
8 # RUN: not ld.lld %t.o --compress-sections=foo=zlib -o /dev/null 2>&1 | \
9 # RUN: FileCheck %s --check-prefix=CHECK2 --implicit-check-not=error:
11 # CHECK: error: --compress-debug-sections: LLVM was not built with LLVM_ENABLE_ZLIB or did not find zlib at build time
12 # CHECK2: error: --compress-sections: LLVM was not built with LLVM_ENABLE_ZLIB or did not find zlib at build time
14 .globl _start
15 _start: