[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenOpenCL / opaque-ptr-spirv.cl
blob93220ef98f1814a8bead5a62fd311f1eacd7ca77
1 // RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -o - -triple spirv64 %s | FileCheck %s
3 // Check that we have a way to recover pointer
4 // types for extern function prototypes (see PR56660).
5 extern void foo(global int * ptr);
6 kernel void k(global int * ptr) {
7 foo(ptr);
9 //CHECK: define spir_kernel void @k(i32 {{.*}}*
10 //CHECK: declare spir_func void @foo(i32 {{.*}}*