1# REQUIRES: x86, zlib
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3# RUN: ld.lld %t -o %t2 --strip-debug
4# RUN: llvm-readobj --sections %t2 | FileCheck %s
5# RUN: ld.lld %t -o %t2 -S
6# RUN: llvm-readobj --sections %t2 | FileCheck %s
7# RUN: ld.lld %t -o %t2 --strip-all
8# RUN: llvm-readobj --sections %t2 | FileCheck %s
9
10# CHECK-NOT: Foo
11# CHECK-NOT: Bar
12
13.section .debug_Foo,"",@progbits
14.section .zdebug_Bar,"",@progbits
15.ascii "ZLIB"
16.quad 0
17