10 lines · cpp
1// RUN: %clang_cc1 -triple spirv64 -x hip -emit-llvm -fcuda-is-device \2// RUN: -o - %s | FileCheck %s3 4#define __global__ __attribute__((global))5 6// CHECK: define {{.*}}spir_kernel void @_Z3fooPff(ptr addrspace(1) {{.*}}, float {{.*}})7__global__ void foo(float *a, float b) {8 *a = b;9}10