diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:49:41 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:49:41 +0000 |
| commit | 45b533945f0851ec234ca846e1af5ee1e4df0b6e (patch) | |
| tree | 0a5b74c0b9ca73aded34df95c91fcaf3815230d8 /test/Driver/thread-model.c | |
| parent | 7e86edd64bfae4e324224452e4ea879b3371a4bd (diff) | |
Vendor import of clang trunk r256633:vendor/clang/clang-trunk-r256633
Diffstat (limited to 'test/Driver/thread-model.c')
| -rw-r--r-- | test/Driver/thread-model.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Driver/thread-model.c b/test/Driver/thread-model.c index 9702c2231a26..d01ef1c1a47c 100644 --- a/test/Driver/thread-model.c +++ b/test/Driver/thread-model.c @@ -13,3 +13,19 @@ // CHECK-LINUX-SINGLE: Thread model: single // CHECK-LINUX-SINGLE: "-mthread-model" "single" // CHECK-LINUX-INVALID-NOT: Thread model: + +// RUN: %clang -### -target wasm32-unknown-linux-gnu -c %s -v 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-DEFAULT %s +// RUN: %clang -### -target wasm32-unknown-linux-gnu -c %s -v -mthread-model single 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-SINGLE %s +// RUN: %clang -### -target wasm32-unknown-linux-gnu -c %s -v -mthread-model posix 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-POSIX %s +// RUN: %clang -### -target wasm32-unknown-linux-gnu -c %s -v -mthread-model silly 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-INVALID %s +// RUN: %clang -### -target wasm64-unknown-linux-gnu -c %s -v 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-DEFAULT %s +// RUN: %clang -### -target wasm64-unknown-linux-gnu -c %s -v -mthread-model single 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-SINGLE %s +// RUN: %clang -### -target wasm64-unknown-linux-gnu -c %s -v -mthread-model posix 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-POSIX %s +// RUN: %clang -### -target wasm64-unknown-linux-gnu -c %s -v -mthread-model silly 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-INVALID %s +// CHECK-WEBASSEMBLY-DEFAULT: Thread model: posix +// CHECK-WEBASSEMBLY-DEFAULT: "-mthread-model" "posix" +// CHECK-WEBASSEMBLY-SINGLE: Thread model: single +// CHECK-WEBASSEMBLY-SINGLE: "-mthread-model" "single" +// CHECK-WEBASSEMBLY-POSIX: Thread model: posix +// CHECK-WEBASSEMBLY-POSIX: "-mthread-model" "posix" +// CHECK-WEBASSEMBLY-INVALID-NOT: Thread model: |
