1 // Verify that we can parse a simple CUDA file with or without -save-temps
2 // http://llvm.org/PR22936
3 // RUN: %clang --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
4 // RUN: -nocudainc -nocudalib -Werror -fsyntax-only %s
6 // Verify that we pass -x cuda-cpp-output to compiler after
7 // preprocessing a CUDA file
8 // RUN: %clang --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
9 // RUN: -Werror -### -save-temps -c %s 2>&1 | FileCheck %s
10 // CHECK-LABEL: "-cc1"
13 // CHECK-LABEL: "-cc1"
14 // CHECK: "-x" "cuda-cpp-output"
16 // Verify that compiler accepts CUDA syntax with "-x cuda-cpp-output".
17 // RUN: %clang --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
18 // RUN: -Werror -fsyntax-only -x cuda-cpp-output %s
20 extern "C" int cudaConfigureCall(int, int);
21 extern "C" int __cudaPushCallConfiguration(int, int);
23 __attribute__((global)) void kernel() {}