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