xref: /llvm-project/lld/test/wasm/threads.s (revision eb4663d8c6add351d758748383f1a9fc231e5e64)
1# RUN: llvm-mc -filetype=obj -triple=wasm32 %s -o %t.o
2
3## A positive integer is allowed.
4# RUN: wasm-ld --no-entry %t.o -o /dev/null
5# RUN: wasm-ld --no-entry --threads=1 %t.o -o /dev/null
6# RUN: wasm-ld --no-entry --threads=2 %t.o -o /dev/null
7
8# RUN: not wasm-ld --threads=all %t.o -o /dev/null 2>&1 | FileCheck %s -DN=all
9# RUN: not wasm-ld --threads=0 %t.o -o /dev/null 2>&1 | FileCheck %s -DN=0
10# RUN: not wasm-ld --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