Files
clang-p2996/lld/test/MinGW/error-limit.test
Alvin Wong de4364f1ec [LLD][MinGW] Add --error-limit=<N> option
This maps to -errorlimit:<N> in the COFF linker and is functionally
identical to the same option in the ELF and MachO linker.

Reviewed By: mstorsjo

Differential Revision: https://reviews.llvm.org/D137489
2022-11-10 13:52:47 +02:00

13 lines
517 B
Plaintext

RUN: ld.lld -### foo.o -m i386pep 2>&1 | FileCheck -check-prefix=DEFAULT %s
DEFAULT-NOT: -errorlimit:
DEFAULT-NOT: /errorlimit:
RUN: ld.lld -### foo.o -m i386pep --error-limit=5 2>&1 | FileCheck -check-prefix=NUMERIC %s
NUMERIC: -errorlimit:5
RUN: ld.lld -### foo.o -m i386pep --error-limit=0 2>&1 | FileCheck -check-prefix=UNLIMITED %s
UNLIMITED: -errorlimit:0
RUN: not ld.lld -### foo.o -m i386pep --error-limit=XYZ 2>&1 | FileCheck -check-prefix=WRONG %s
WRONG: --error-limit: number expected, but got XYZ