blob: 83a854f2a4f431c5a74af692174540dcd5efbffb [file] [log] [blame]
Guy Benyei21f18c42013-02-07 10:55:47 +00001// 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}