blob: 3d9aef59f0bbc53a59c626c2cb736f908e5ca8d2 [file] [log] [blame]
// 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}}
#pragma OPENCL EXTENSION cl_clang_storage_class_specifiers : enable
static int e; // expected-error {{program scope variable must reside in constant address space}}
register int f;
extern int g;
auto int h;
}