Home | History | Annotate | Download | only in Driver
      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 
     17 // RUN: %clang -### -target wasm32-unknown-linux-gnu -c %s -v 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-DEFAULT %s
     18 // RUN: %clang -### -target wasm32-unknown-linux-gnu -c %s -v -mthread-model single 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-SINGLE %s
     19 // RUN: %clang -### -target wasm32-unknown-linux-gnu -c %s -v -mthread-model posix 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-POSIX %s
     20 // RUN: %clang -### -target wasm32-unknown-linux-gnu -c %s -v -mthread-model silly 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-INVALID %s
     21 // RUN: %clang -### -target wasm64-unknown-linux-gnu -c %s -v 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-DEFAULT %s
     22 // RUN: %clang -### -target wasm64-unknown-linux-gnu -c %s -v -mthread-model single 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-SINGLE %s
     23 // RUN: %clang -### -target wasm64-unknown-linux-gnu -c %s -v -mthread-model posix 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-POSIX %s
     24 // RUN: %clang -### -target wasm64-unknown-linux-gnu -c %s -v -mthread-model silly 2>&1 | FileCheck -check-prefix=CHECK-WEBASSEMBLY-INVALID %s
     25 // CHECK-WEBASSEMBLY-DEFAULT: Thread model: posix
     26 // CHECK-WEBASSEMBLY-DEFAULT: "-mthread-model" "posix"
     27 // CHECK-WEBASSEMBLY-SINGLE: Thread model: single
     28 // CHECK-WEBASSEMBLY-SINGLE: "-mthread-model" "single"
     29 // CHECK-WEBASSEMBLY-POSIX: Thread model: posix
     30 // CHECK-WEBASSEMBLY-POSIX: "-mthread-model" "posix"
     31 // CHECK-WEBASSEMBLY-INVALID-NOT: Thread model:
     32