view clang/test/Parser/opencl-image-access.cl @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 1d019706d866
children
line wrap: on
line source

// 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