Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / invalid-local-symbol-in-dso.s
blob4acd709d17c856c3831ebaaefae3cc5684eba500
1 # REQUIRES: x86
3 # We used to crash on this
4 # RUN: not ld.lld %p/Inputs/local-symbol-in-dso.so -o /dev/null 2>&1 | FileCheck %s
5 # CHECK: error: {{.*}}local-symbol-in-dso.so: invalid local symbol 'foo' in global part of symbol table
7 # RUN: llvm-mc %s -o %t.o -filetype=obj -triple x86_64-pc-linux
8 # RUN: not ld.lld %t.o %p/Inputs/local-symbol-in-dso.so -o /dev/null
10 .globl main
11 main:
12 movq foo@GOTTPOFF(%rip), %rax