[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / clang / test / Parser / opencl-image-access.cl
blob99ced8e32bb73548cb3067b427f8b3f8386cc04c
1 // RUN: %clang_cc1 %s -fsyntax-only -verify
2 // RUN: %clang_cc1 %s -fsyntax-only -verify -cl-std=CL2.0 -DCL20
3 // expected-no-diagnostics
5 __kernel void f__ro(__read_only image2d_t a) { }
7 __kernel void f__wo(__write_only image2d_t a) { }
9 #if CL20
10 __kernel void f__rw(__read_write image2d_t a) { }
11 #endif
13 __kernel void fro(read_only image2d_t a) { }
15 __kernel void fwo(write_only image2d_t a) { }
17 #if CL20
18 __kernel void frw(read_write image2d_t a) { }
19 #endif