[OpenCL] Fix condition macro name in test

This commit is contained in:
Justas Janickas 2021-09-01 15:22:30 +01:00
parent ac312a9d7c
commit 52f7cd23b4
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ kernel void read_write_twice_typedef(read_write img1d_rw i){} // expected-warnin
// expected-note@-67 {{previously declared 'read_write' here}}
#endif
#if OPENCL_C_VERSION__ >= 200
#if __OPENCL_C_VERSION__ >= 200
void myPipeWrite(write_only pipe int); // expected-note {{passing argument to parameter here}}
kernel void k14(read_only pipe int p) {
myPipeWrite(p); // expected-error {{passing '__private read_only pipe int' to parameter of incompatible type 'write_only pipe int'}}