[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenOpenCL / ptx-kernels.cl
blob210e5682ac721cd29451e709e9b175ee66b3f2c5
1 // RUN: %clang_cc1 %s -triple nvptx-unknown-unknown -emit-llvm -o - | FileCheck %s
3 void device_function() {
5 // CHECK-LABEL: define{{.*}} void @device_function()
7 __kernel void kernel_function() {
9 // CHECK-LABEL: define{{.*}} spir_kernel void @kernel_function()
11 // CHECK: !{{[0-9]+}} = !{ptr @kernel_function, !"kernel", i32 1}