Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / invalid / reserved-section-name.s
blob97dd4376c88f1bbd0adc0951b65a6745c4ff1db3
1 ## We're intentionally testing fatal errors (for malformed input files), and
2 ## fatal errors aren't supported for testing when main is run twice.
3 # XFAIL: main-run-twice
5 # REQUIRES: x86
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
7 # RUN: not %lld -o %t %t.o 2>&1 | FileCheck %s -DFILE=%t.o
8 # CHECK: error: section from [[FILE]] conflicts with synthetic section __DATA_CONST,__got
10 .globl _main
12 .section __DATA_CONST,__got
13 .space 1
15 .data
16 _foo:
17 .space 1
19 .text
20 _main:
21 ## make sure the GOT will be needed
22 pushq _foo@GOTPCREL(%rip)
23 ret