Index: test/Driver/cuda-simple.cu =================================================================== --- test/Driver/cuda-simple.cu +++ test/Driver/cuda-simple.cu @@ -1,3 +1,8 @@ +// +// REQUIRES: clang-driver +// REQUIRES: x86-registered-target +// REQUIRES: nvptx-registered-target +// // Verify that we can parse a simple CUDA file with or without -save-temps // http://llvm.org/PR22936 // RUN: %clang -nocudainc -Werror -fsyntax-only -c %s @@ -13,6 +18,13 @@ // // Verify that compiler accepts CUDA syntax with "-x cuda-cpp-output". // RUN: %clang -Werror -fsyntax-only -x cuda-cpp-output -c %s +// +// Verify that C++ include paths are passed for both host and device frontend. +// RUN: %clang -### -target x86_64-linux-gnu %s --sysroot=%S/Inputs/ubuntu_14.04_multiarch_tree2 2>&1 \ +// RUN: | FileCheck %s --check-prefix CHECK-CXXINCLUDE +// CHECK-CXXINCLUDE: clang{{.*}} "-cc1" "-triple" "nvptx64-nvidia-cuda" {{.*}}"-internal-isystem" "{{.+}}/include/c++/4.8" +// CHECK-CXXINCLUDE: clang{{.*}} "-cc1" "-triple" "x86_64--linux-gnu" {{.*}}"-internal-isystem" "{{.+}}/include/c++/4.8" +// CHECK-CXXINCLUDE: ld" {{.*}}"-m" "elf_x86_64" int cudaConfigureCall(int, int); __attribute__((global)) void kernel() {}