[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / error-limit-no-newlines.s
blobf628be2c769a1c23cf51daf1a05b3e44641d150e
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
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
18 .globl foo
19 foo:
20 nop
22 .globl bar
23 bar:
24 nop