summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCUDA/kernel-call.cu
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCUDA/kernel-call.cu')
-rw-r--r--clang/test/CodeGenCUDA/kernel-call.cu13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGenCUDA/kernel-call.cu b/clang/test/CodeGenCUDA/kernel-call.cu
new file mode 100644
index 0000000..f134624
--- /dev/null
+++ b/clang/test/CodeGenCUDA/kernel-call.cu
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+
+#include "../SemaCUDA/cuda.h"
+
+__global__ void g1(int x) {}
+
+int main(void) {
+ // CHECK: call{{.*}}cudaConfigureCall
+ // CHECK: icmp
+ // CHECK: br
+ // CHECK: call{{.*}}g1
+ g1<<<1, 1>>>(42);
+}