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