blob: d479358f00240a18a76ba29859659d33e6343e22 [file] [log] [blame]
Peter Collingbournedb27d822011-02-15 19:46:41 +00001// RUN: %clang_cc1 %s -verify -fsyntax-only
Peter Collingbournee2f82f72011-02-11 19:59:54 +00002
3void test_storage_class_specs()
4{
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}}
9}