brintos

brintos / llvm-project-archived public Read only

0
0
Text · 562 B · 97dd437 Raw
24 lines · plain
1## We're intentionally testing fatal errors (for malformed input files), and2## fatal errors aren't supported for testing when main is run twice.3# XFAIL: main-run-twice4 5# REQUIRES: x866# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o7# RUN: not %lld -o %t %t.o 2>&1 | FileCheck %s -DFILE=%t.o8# CHECK: error: section from [[FILE]] conflicts with synthetic section __DATA_CONST,__got9 10.globl _main11 12.section __DATA_CONST,__got13.space 114 15.data16_foo:17.space 118 19.text20_main:21## make sure the GOT will be needed22  pushq _foo@GOTPCREL(%rip)23  ret24