Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / threads.s
blob7a9eeec00e08a1fd237b951f68577da2313d25e4
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
4 ## A positive integer is allowed.
5 # RUN: ld.lld --threads=1 %t.o -o /dev/null
6 # RUN: ld.lld --threads=2 %t.o -o /dev/null
8 # RUN: not ld.lld --threads=all %t.o -o /dev/null 2>&1 | FileCheck %s -DN=all
9 # RUN: not ld.lld --threads=0 %t.o -o /dev/null 2>&1 | FileCheck %s -DN=0
10 # RUN: not ld.lld --threads=-1 %t.o -o /dev/null 2>&1 | FileCheck %s -DN=-1
12 # CHECK: error: --threads: expected a positive integer, but got '[[N]]'