Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / invalid / bad-got-to-tlv-reference.s
blob8934bc892a474f00dd32101f60c0787b3ebdc27f
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: error: [[FILE]]:(symbol _main+0x3): GOT_LOAD relocation requires that symbol _foo not be thread-local
7 .text
8 .globl _main
9 _main:
10 movq _foo@GOTPCREL(%rip), %rax
11 ret
13 .section __DATA,__thread_vars,thread_local_variables
14 _foo: