Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / retain-und.s
blob2f346754d1a0a8a06db027961fa28cf3fb33503f
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: echo > %t.retain
4 # RUN: echo "{ local: *; }; " > %t.script
5 # RUN: ld.lld -shared --version-script %t.script %t.o -o %t1.so
6 # RUN: ld.lld -shared --retain-symbols-file %t.retain %t.o -o %t2.so
7 # RUN: llvm-readobj -r %t1.so | FileCheck %s
8 # RUN: llvm-readobj -r %t2.so | FileCheck %s
10 # CHECK: Relocations [
11 # CHECK-NEXT: Section ({{.*}}) .rela.dyn {
12 # CHECK-NEXT: 0x{{.*}} R_X86_64_64 foo 0x0
13 # CHECK-NEXT: }
14 # CHECK-NEXT: ]
16 .data
17 .quad foo
18 .weak foo