Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / invalid / bad-tlv-relocation.s
blob23890131a68284ea6d1f4edf755fae5d709a707f
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
3 # RUN: not %lld -o /dev/null %t.o 2>&1 | FileCheck %s -DFILE=%t.o
5 # CHECK: [[FILE]]:(symbol _main+0x3): TLV relocation requires that symbol _foo be thread-local
7 .text
8 .globl _main
9 _main:
10 leaq _foo@TLVP(%rip), %rax
11 ret
13 .data
14 _foo: