1// RUN: %clang_cc1 %s
2
3void __attribute__((overloadable)) foo(sampler_t, read_only image1d_t);
4void __attribute__((overloadable)) foo(sampler_t, read_only image2d_t);
5
6constant sampler_t glb_smp = 5;
7
8void 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}
13