summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/opencl-storage-class.cl
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/opencl-storage-class.cl')
-rw-r--r--clang/test/Parser/opencl-storage-class.cl6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Parser/opencl-storage-class.cl b/clang/test/Parser/opencl-storage-class.cl
index d479358f002..874329b62d5 100644
--- a/clang/test/Parser/opencl-storage-class.cl
+++ b/clang/test/Parser/opencl-storage-class.cl
@@ -6,4 +6,10 @@ void test_storage_class_specs()
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;
}
OpenPOWER on IntegriCloud