13 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o3 4## A positive integer is allowed.5# RUN: ld.lld --threads=1 %t.o -o /dev/null6# RUN: ld.lld --threads=2 %t.o -o /dev/null7 8# RUN: not ld.lld --threads=all %t.o -o /dev/null 2>&1 | FileCheck %s -DN=all9# RUN: not ld.lld --threads=0 %t.o -o /dev/null 2>&1 | FileCheck %s -DN=010# RUN: not ld.lld --threads=-1 %t.o -o /dev/null 2>&1 | FileCheck %s -DN=-111 12# CHECK: error: --threads: expected a positive integer, but got '[[N]]'13