Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaOpenCL / sampler_t_overload.cl
blob83a854f2a4f431c5a74af692174540dcd5efbffb
1 // RUN: %clang_cc1 %s
3 void __attribute__((overloadable)) foo(sampler_t, read_only image1d_t);
4 void __attribute__((overloadable)) foo(sampler_t, read_only image2d_t);
6 constant sampler_t glb_smp = 5;
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);