summaryrefslogtreecommitdiff
path: root/clang/test/Parser/opencl-image-access.cl
blob: 313587c1d2259a353517a2345c9ed03a58fe4071 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 %s -fsyntax-only

typedef void* image2d_t;

__kernel void f__ro(__read_only image2d_t a) { }

__kernel void f__wo(__write_only image2d_t a) { }

__kernel void f__rw(__read_write image2d_t a) { }


__kernel void fro(read_only image2d_t a) { }

__kernel void fwo(write_only image2d_t a) { }

__kernel void frw(read_write image2d_t a) { }