brintos

brintos / llvm-project-archived public Read only

0
0
Text · 659 B · f628be2 Raw
25 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t1.o3# RUN: not ld.lld --error-limit=1 %t1.o %t1.o %t1.o -o /dev/null 2>%t.output4# RUN: echo "END" >> %t.output5# RUN: FileCheck %s -input-file=%t.output6 7# CHECK:      error: duplicate symbol: _start8# CHECK-NEXT: >>> defined at {{.*}}1.o:(.text+0x0)9# CHECK-NEXT: >>> defined at {{.*}}1.o:(.text+0x0)10# CHECK-EMPTY:11# CHECK-NEXT: ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)12## Ensure that there isn't an additional newline before the next message:13# CHECK-NEXT: END14.globl _start15_start:16  nop17 18.globl foo19foo:20  nop21 22.globl bar23bar:24  nop25