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