2016-02-26 11:13:03 +08:00
|
|
|
// RUN: %clang_cc1 %s -fsyntax-only -verify
|
|
|
|
// RUN: %clang_cc1 %s -fsyntax-only -verify -cl-std=CL2.0 -DCL20
|
|
|
|
// expected-no-diagnostics
|
2012-12-18 22:30:41 +08:00
|
|
|
|
|
|
|
__kernel void f__ro(__read_only image2d_t a) { }
|
|
|
|
|
|
|
|
__kernel void f__wo(__write_only image2d_t a) { }
|
|
|
|
|
2016-02-26 11:13:03 +08:00
|
|
|
#if CL20
|
2012-12-18 22:30:41 +08:00
|
|
|
__kernel void f__rw(__read_write image2d_t a) { }
|
2016-02-26 11:13:03 +08:00
|
|
|
#endif
|
2012-12-18 22:30:41 +08:00
|
|
|
|
|
|
|
__kernel void fro(read_only image2d_t a) { }
|
|
|
|
|
|
|
|
__kernel void fwo(write_only image2d_t a) { }
|
|
|
|
|
2016-02-26 11:13:03 +08:00
|
|
|
#if CL20
|
2012-12-18 22:30:41 +08:00
|
|
|
__kernel void frw(read_write image2d_t a) { }
|
2016-02-26 11:13:03 +08:00
|
|
|
#endif
|