2020-06-08 03:27:11 +08:00
|
|
|
// RUN: %clang -### -target arm-unknown-linux-gnu -c %s -mthread-model posix -v 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -### -target arm-unknown-linux-gnu -c %s -v 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -### -target arm-unknown-linux-gnu -c %s -mthread-model single -v 2>&1 | FileCheck --check-prefix=SINGLE %s
|
|
|
|
// RUN: not %clang -target arm-unknown-linux-gnu -c %s -mthread-model silly -v 2>&1 | FileCheck --check-prefix=INVALID %s
|
2014-10-04 05:57:44 +08:00
|
|
|
|
2020-06-08 03:27:11 +08:00
|
|
|
// CHECK: Thread model: posix
|
|
|
|
// CHECK-NOT: "-mthread-model"
|
|
|
|
// SINGLE: Thread model: single
|
|
|
|
// SINGLE: "-mthread-model" "single"
|
|
|
|
// INVALID: error: invalid thread model 'silly' in '-mthread-model silly' for this target
|
2015-09-04 06:51:53 +08:00
|
|
|
|
2020-06-08 03:27:11 +08:00
|
|
|
// RUN: %clang -### -target wasm32-unknown-linux-gnu -c %s -v 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -### -target wasm32-unknown-linux-gnu -c %s -v -mthread-model single 2>&1 | FileCheck --check-prefix=SINGLE %s
|
|
|
|
// RUN: %clang -### -target wasm32-unknown-linux-gnu -c %s -v -mthread-model posix 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -### -target wasm32-unknown-linux-gnu -c %s -v -mthread-model silly 2>&1 | FileCheck --check-prefix=INVALID %s
|
|
|
|
// RUN: %clang -### -target wasm64-unknown-linux-gnu -c %s -v 2>&1 | FileCheck %s
|