Fix the clang-wpa example.
[clang.git] / test / Parser / cl_storage_class.cl
blob5db8f4befa08b582dc1706f5fb77d5cbf927501d
1 // RUN: %clang_cc1 %s -x cl -verify -fsyntax-only
3 void test_storage_class_specs()
5 static int a; // expected-error {{OpenCL does not support the 'static' storage class specifier}}
6 register int b; // expected-error {{OpenCL does not support the 'register' storage class specifier}}
7 extern int c; // expected-error {{OpenCL does not support the 'extern' storage class specifier}}
8 auto int d; // expected-error {{OpenCL does not support the 'auto' storage class specifier}}