llvm-project
16 строк · 527.0 Байт
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
3
4## A positive integer is allowed.
5# RUN: %lld --threads=1 %t.o -o /dev/null
6# RUN: %lld --threads=2 %t.o -o /dev/null
7
8# RUN: not %lld --threads=all %t.o -o /dev/null 2>&1 | FileCheck %s -DN=all
9# RUN: not %lld --threads=0 %t.o -o /dev/null 2>&1 | FileCheck %s -DN=0
10# RUN: not %lld --threads=-1 %t.o -o /dev/null 2>&1 | FileCheck %s -DN=-1
11
12# CHECK: error: --threads=: expected a positive integer, but got '[[N]]'
13
14.globl _main
15_main:
16ret
17