minix/external/bsd/llvm/dist/clang/test/Parser/opencl-storage-class.cl
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

15 lines
622 B
Common Lisp

// 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;
register int f;
extern int g;
auto int h;
}