2011-10-07 02:29:46 +08:00
|
|
|
// RUN: %clang_cc1 %s -triple ptx32-unknown-unknown -fcuda-is-device -emit-llvm -o - | FileCheck %s
|
2011-10-07 00:49:54 +08:00
|
|
|
|
|
|
|
#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();
|
|
|
|
}
|