YouCompleteMe/cpp/llvm/tools/clang/test/CodeGenCUDA/ptx-kernels.cu
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

13 lines
376 B
Plaintext

// RUN: %clang_cc1 %s -triple ptx32-unknown-unknown -fcuda-is-device -emit-llvm -o - | FileCheck %s
#include "../SemaCUDA/cuda.h"
// CHECK: define ptx_device{{.*}}device_function
__device__ void device_function() {}
// CHECK: define ptx_kernel{{.*}}global_function
__global__ void global_function() {
// CHECK: call ptx_device{{.*}}device_function
device_function();
}