xref: /llvm-project/lld/test/MinGW/error-limit.test (revision de4364f1ecaa6a5d631cff036b8f31e02841e73d)
1RUN: ld.lld -### foo.o -m i386pep 2>&1 | FileCheck -check-prefix=DEFAULT %s
2DEFAULT-NOT: -errorlimit:
3DEFAULT-NOT: /errorlimit:
4
5RUN: ld.lld -### foo.o -m i386pep --error-limit=5 2>&1 | FileCheck -check-prefix=NUMERIC %s
6NUMERIC: -errorlimit:5
7
8RUN: ld.lld -### foo.o -m i386pep --error-limit=0 2>&1 | FileCheck -check-prefix=UNLIMITED %s
9UNLIMITED: -errorlimit:0
10
11RUN: not ld.lld -### foo.o -m i386pep --error-limit=XYZ 2>&1 | FileCheck -check-prefix=WRONG %s
12WRONG:      --error-limit: number expected, but got XYZ
13