summaryrefslogtreecommitdiffstats
path: root/test/Parser/opencl-storage-class.cl
blob: d479358f00240a18a76ba29859659d33e6343e22 (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 %s -verify -fsyntax-only

void test_storage_class_specs()
{
  static int a;    // expected-error {{OpenCL does not support the 'static' storage class specifier}}
  register int b;  // expected-error {{OpenCL does not support the 'register' storage class specifier}}
  extern int c;    // expected-error {{OpenCL does not support the 'extern' storage class specifier}}
  auto int d;      // expected-error {{OpenCL does not support the 'auto' storage class specifier}}
}
OpenPOWER on IntegriCloud