1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t1.o 3# RUN: not ld.lld --error-limit=1 %t1.o %t1.o %t1.o -o /dev/null 2>%t.output 4# RUN: echo "END" >> %t.output 5# RUN: FileCheck %s -input-file=%t.output 6 7# CHECK: error: duplicate symbol: _start 8# 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: END 14.globl _start 15_start: 16 nop 17 18.globl foo 19foo: 20 nop 21 22.globl bar 23bar: 24 nop 25