Debian Codegraph @

clang/test/SemaOpenCL/sampler_t_overload.cl

raw
1 // RUN: %clang_cc1 %s
2
3 void __attribute__((overloadable)) foo(sampler_t, read_only image1d_t);
4 void __attribute__((overloadable)) foo(sampler_t, read_only image2d_t);
5
6 constant sampler_t glb_smp = 5;
7
8 void kernel ker(read_only image1d_t src1, read_only image2d_t src2) {
9 const sampler_t smp = 10;
10 foo(glb_smp, src1);
11 foo(smp, src2);
12 }