| 1 |
// RUN: %clang -### -nogpulib -nogpuinc --target=x86_64-unknown-linux-gnu -offload-arch=gfx906 %s \ |
| 2 |
// RUN: 2>&1 | FileCheck -check-prefixes=DEFAULT %s |
| 3 |
// DEFAULT: "-cc1"{{.*}}"-fcuda-is-device"{{.*}} |
| 4 |
// DEFAULT-NOT: "-std="{{.*}} |
| 5 |
// DEFAULT: "-cc1"{{.*}} |
| 6 |
// DEFAULT-NOT: "-std="{{.*}} |
| 7 |
|
| 8 |
// RUN: %clang -### -nogpulib -nogpuinc --target=x86_64-unknown-linux-gnu -offload-arch=gfx906 %s \ |
| 9 |
// RUN: -std=c++17 %s 2>&1 | FileCheck -check-prefixes=SPECIFIED %s |
| 10 |
// SPECIFIED: "-cc1"{{.*}}"-fcuda-is-device"{{.*}}"-std=c++17" |
| 11 |
// SPECIFIED: "-cc1"{{.*}}"-std=c++17" |
| 12 |
|
| 13 |
// RUN: %clang -### -nogpulib -nogpuinc --target=x86_64-pc-windows-msvc -offload-arch=gfx906 %s \ |
| 14 |
// RUN: 2>&1 | FileCheck -check-prefixes=MSVC-DEF %s |
| 15 |
// MSVC-DEF: "-cc1"{{.*}}"-fcuda-is-device"{{.*}} |
| 16 |
// MSVC-DEF-NOT: "-std="{{.*}} |
| 17 |
// MSVC-DEF: "-cc1"{{.*}} |
| 18 |
// MSVC-DEF-NOT: "-std="{{.*}} |
| 19 |
|
| 20 |
// RUN: %clang -### -nogpulib -nogpuinc --target=x86_64-pc-windows-msvc -offload-arch=gfx906 %s \ |
| 21 |
// RUN: -std=c++17 %s 2>&1 | FileCheck -check-prefixes=MSVC-SPEC %s |
| 22 |
// MSVC-SPEC: "-cc1"{{.*}}"-fcuda-is-device"{{.*}}"-std=c++17" |
| 23 |
// MSVC-SPEC: "-cc1"{{.*}}"-std=c++17" |