Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / symbol-override.s
blobd3b691def4e7a58f56e915e9f45d727f28c506a7
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
3 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/symbol-override.s -o %t2.o
4 // RUN: ld.lld -shared %t2.o -o %t2.so
5 // RUN: ld.lld %t1.o %t2.so -o %t
6 // RUN: llvm-nm -D %t | FileCheck %s
8 // CHECK: do
9 // CHECK-NEXT: foo
10 // CHECK-NOT: {{.}}
12 .text
13 .globl foo
14 .type foo,@function
15 foo:
16 nop
18 .text
19 .globl _start
20 _start:
21 callq do@plt