1 // RUN: %clang -### -target arm-unknown-linux-gnu -c %s -mthread-model posix -v 2>&1 | FileCheck -check-prefix=CHECK-POSIX %s
2 // RUN: %clang -### -target arm-unknown-linux-gnu -c %s -mthread-model single -v 2>&1 | FileCheck -check-prefix=CHECK-SINGLE %s
3 // RUN: not %clang -target arm-unknown-linux-gnu -c %s -mthread-model silly -v 2>&1 | FileCheck -check-prefix=CHECK-INVALID %s
4 // CHECK-POSIX: "-mthread-model" "posix"
5 // CHECK-SINGLE: "-mthread-model" "single"
6 // CHECK-INVALID: error: invalid thread model 'silly' in '-mthread-model silly' for this target
7 
8 // RUN: %clang -### -target arm-unknown-linux-gnu -c %s -v 2>&1 | FileCheck -check-prefix=CHECK-LINUX-POSIX %s
9 // RUN: %clang -### -target arm-unknown-linux-gnu -c %s -v -mthread-model single 2>&1 | FileCheck -check-prefix=CHECK-LINUX-SINGLE %s
10 // RUN: %clang -### -target arm-unknown-linux-gnu -c %s -v -mthread-model silly 2>&1 | FileCheck -check-prefix=CHECK-LINUX-INVALID %s
11 // CHECK-LINUX-POSIX: Thread model: posix
12 // CHECK-LINUX-POSIX: "-mthread-model" "posix"
13 // CHECK-LINUX-SINGLE: Thread model: single
14 // CHECK-LINUX-SINGLE: "-mthread-model" "single"
15 // CHECK-LINUX-INVALID-NOT: Thread model:
16