summaryrefslogtreecommitdiff
path: root/lld/test/MachO/read-workers.s
blob: 294106ba0b084410e5ec6f0012c87c46009f81fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# REQUIRES: x86 && thread_support
## Sometimes fails, particularly in an ASAN build, do not run until
## https://github.com/llvm/llvm-project/pull/157917 addresses the cause.
# UNSUPPORTED: target={{.*}}
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o

## A non-negative integer is allowed.
# RUN: %lld --read-workers=0 %t.o -o /dev/null
# RUN: %lld --read-workers=1 %t.o -o /dev/null
# RUN: %lld --read-workers=2 %t.o -o /dev/null

# RUN: not %lld --read-workers=all %t.o -o /dev/null 2>&1 | FileCheck %s -DN=all
# RUN: not %lld --read-workers=-1 %t.o -o /dev/null 2>&1 | FileCheck %s -DN=-1

# CHECK: error: --read-workers=: expected a non-negative integer, but got '[[N]]'

.globl _main
_main:
  ret