diff options
Diffstat (limited to 'clang/test/CodeGenOpenCL/kernel-metadata.cl')
-rw-r--r-- | clang/test/CodeGenOpenCL/kernel-metadata.cl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGenOpenCL/kernel-metadata.cl b/clang/test/CodeGenOpenCL/kernel-metadata.cl new file mode 100644 index 0000000..3e10a11 --- /dev/null +++ b/clang/test/CodeGenOpenCL/kernel-metadata.cl @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s + +void normal_function() { +} + +__kernel void kernel_function() { +} + +// CHECK: !opencl.kernels = !{!0} +// CHECK: !0 = metadata !{void ()* @kernel_function} |