// Test this without pch.
// RUN: %clang_cc1 -triple spir-unknown-unknown -include %S/ocl_types.h -fsyntax-only %s -cl-std=CL2.0 -D__OPENCL_VERSION__=200
// Test with pch.
// 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
// RUN: %clang_cc1 -triple spir-unknown-unknown -include-pch %t -fsyntax-only %s -ast-print -cl-std=CL2.0 -D__OPENCL_VERSION__=200
void foo1;
void foo2;
void foo3;
void foo4;
void foo5;
void foo6;
void foo7 {
smp_t loc_smp;
}
void foo8 {
evt_t loc_evt;
}
#if __OPENCL_VERSION__ >= 200
void foo9 {
int_pipe_function;
}
void foo10 {
person_pipe_function;
}
#endif