Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / strip-debug.s
blob95cbe3a2c2b6c5045089e705da1403e6d9743569
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
10 # CHECK-NOT: Foo
11 # CHECK-NOT: Bar
13 .section .debug_Foo,"",@progbits
14 .quad 0