summaryrefslogtreecommitdiffstats
path: root/test/Parser/opencl-image-access.cl
blob: 99ced8e32bb73548cb3067b427f8b3f8386cc04c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %clang_cc1 %s -fsyntax-only -verify
// RUN: %clang_cc1 %s -fsyntax-only -verify -cl-std=CL2.0 -DCL20
// expected-no-diagnostics

__kernel void f__ro(__read_only image2d_t a) { }

__kernel void f__wo(__write_only image2d_t a) { }

#if CL20
__kernel void f__rw(__read_write image2d_t a) { }
#endif

__kernel void fro(read_only image2d_t a) { }

__kernel void fwo(write_only image2d_t a) { }

#if CL20
__kernel void frw(read_write image2d_t a) { }
#endif