aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCUDA/ptx-kernels.cu
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCUDA/ptx-kernels.cu')
-rw-r--r--test/CodeGenCUDA/ptx-kernels.cu10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/CodeGenCUDA/ptx-kernels.cu b/test/CodeGenCUDA/ptx-kernels.cu
index f0bf2952a1..8d34f4f3a6 100644
--- a/test/CodeGenCUDA/ptx-kernels.cu
+++ b/test/CodeGenCUDA/ptx-kernels.cu
@@ -2,11 +2,15 @@
#include "../SemaCUDA/cuda.h"
-// CHECK: define ptx_device{{.*}}device_function
+// CHECK: define void @device_function
+extern "C"
__device__ void device_function() {}
-// CHECK: define ptx_kernel{{.*}}global_function
+// CHECK: define void @global_function
+extern "C"
__global__ void global_function() {
- // CHECK: call ptx_device{{.*}}device_function
+ // CHECK: call void @device_function
device_function();
}
+
+// CHECK: !{{[0-9]+}} = metadata !{void ()* @global_function, metadata !"kernel", i32 1}