blob: 8005cfacee6cdd0b011d84fc0316ec3606a886b4 [file] [log] [blame]
Rui Ueyamafc6a4b02016-04-07 21:04:51 +00001# REQUIRES: x86
George Rimarcbed0e62017-11-03 08:13:16 +00002# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
Rui Ueyamafc6a4b02016-04-07 21:04:51 +00003# RUN: ld.lld %t -o %t2 --strip-debug
George Rimarcbed0e62017-11-03 08:13:16 +00004# RUN: llvm-readobj -sections %t2 | FileCheck %s
Rui Ueyamac4354a32016-04-07 21:10:09 +00005# RUN: ld.lld %t -o %t2 -S
George Rimarcbed0e62017-11-03 08:13:16 +00006# RUN: llvm-readobj -sections %t2 | FileCheck %s
Rui Ueyamafc6a4b02016-04-07 21:04:51 +00007# RUN: ld.lld %t -o %t2 --strip-all
George Rimarcbed0e62017-11-03 08:13:16 +00008# RUN: llvm-readobj -sections %t2 | FileCheck %s
Rui Ueyamafc6a4b02016-04-07 21:04:51 +00009
George Rimarcbed0e62017-11-03 08:13:16 +000010# CHECK-NOT: Foo
11# CHECK-NOT: Bar
Rui Ueyamafc6a4b02016-04-07 21:04:51 +000012
George Rimarcbed0e62017-11-03 08:13:16 +000013.section .debug_Foo,"",@progbits
14.section .zdebug_Bar,"",@progbits