llvm-project/clang/test/CodeGenHIP/hipspv-kernel.cpp
Nikita Popov 9466b49171 [Clang] Convert various tests to opaque pointers (NFC)
These were all tests where no manual fixup was required.
2022-12-12 17:11:46 +01:00

10 lines
293 B
C++

// RUN: %clang_cc1 -triple spirv64 -x hip -emit-llvm -fcuda-is-device \
// RUN: -o - %s | FileCheck %s
#define __global__ __attribute__((global))
// CHECK: define {{.*}}spir_kernel void @_Z3fooPff(ptr addrspace(1) {{.*}}, float {{.*}})
__global__ void foo(float *a, float b) {
*a = b;
}