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
) {
9 //CHECK
: define spir_kernel void
@k
(i32 {{.
*}}*
10 //CHECK
: declare spir_func void
@foo
(i32 {{.
*}}*