brintos

brintos / llvm-project-archived public Read only

0
0
Text · 460 B · 99ced8e Raw
20 lines · plain
1// RUN: %clang_cc1 %s -fsyntax-only -verify2// RUN: %clang_cc1 %s -fsyntax-only -verify -cl-std=CL2.0 -DCL203// expected-no-diagnostics4 5__kernel void f__ro(__read_only image2d_t a) { }6 7__kernel void f__wo(__write_only image2d_t a) { }8 9#if CL2010__kernel void f__rw(__read_write image2d_t a) { }11#endif12 13__kernel void fro(read_only image2d_t a) { }14 15__kernel void fwo(write_only image2d_t a) { }16 17#if CL2018__kernel void frw(read_write image2d_t a) { }19#endif20