[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / ocl_types.cl
blob60323e1609a7142a434da4872e93e2a75cf71a05
1 // Test this without pch.
2 // RUN: %clang_cc1 -triple spir-unknown-unknown -include %S/ocl_types.h -fsyntax-only %s -cl-std=CL2.0 -D__OPENCL_VERSION__=200
4 // Test with pch.
5 // RUN: %clang_cc1 -triple spir-unknown-unknown -x cl -emit-pch -o %t %S/ocl_types.h -cl-std=CL2.0 -D__OPENCL_VERSION__=200
6 // RUN: %clang_cc1 -triple spir-unknown-unknown -include-pch %t -fsyntax-only %s -ast-print -cl-std=CL2.0 -D__OPENCL_VERSION__=200
8 void foo1(img1d_t img);
10 void foo2(img1darr_t img);
12 void foo3(img1dbuff_t img);
14 void foo4(img2d_t img);
16 void foo5(img2darr_t img);
18 void foo6(img3d_t img);
20 void foo7(smp_t smp) {
21 smp_t loc_smp;
24 void foo8(evt_t evt) {
25 evt_t loc_evt;
28 #if __OPENCL_VERSION__ >= 200
30 void foo9(pipe int P) {
31 int_pipe_function(P);
34 void foo10(pipe Person P) {
35 person_pipe_function(P);
38 #endif