[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenHIP / hipspv-kernel.cpp
blobb9a6df12c79688db74cdc28c48db08b55ec999b2
1 // RUN: %clang_cc1 -triple spirv64 -x hip -emit-llvm -fcuda-is-device \
2 // RUN: -o - %s | FileCheck %s
4 #define __global__ __attribute__((global))
6 // CHECK: define {{.*}}spir_kernel void @_Z3fooPff(ptr addrspace(1) {{.*}}, float {{.*}})
7 __global__ void foo(float *a, float b) {
8 *a = b;