brintos

brintos / llvm-project-archived public Read only

0
0
Text · 341 B · 83a854f Raw
13 lines · plain
1// RUN: %clang_cc1 %s2 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