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
7 # CHECK: error: duplicate symbol: _start
8 # CHECK-NEXT: >>> defined at {{.*}}1.o:(.text+0x0)
9 # CHECK-NEXT: >>> defined at {{.*}}1.o:(.text+0x0)
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: