summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/opencl-storage-class.cl
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-02-15 19:46:41 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-02-15 19:46:41 +0000
commite91b2dbdf155b9e9f8ec790e77487bf2de96ea88 (patch)
tree0dbeb5ba9f48d375b98f9812018ea783c7433357 /clang/test/Parser/opencl-storage-class.cl
parent5df20e02af72fdb1328c981f6f2b6dd7e1d24c1b (diff)
downloadbcm5719-llvm-e91b2dbdf155b9e9f8ec790e77487bf2de96ea88.tar.gz
bcm5719-llvm-e91b2dbdf155b9e9f8ec790e77487bf2de96ea88.zip
OpenCL: standardise naming of test cases
llvm-svn: 125590
Diffstat (limited to 'clang/test/Parser/opencl-storage-class.cl')
-rw-r--r--clang/test/Parser/opencl-storage-class.cl9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Parser/opencl-storage-class.cl b/clang/test/Parser/opencl-storage-class.cl
new file mode 100644
index 00000000000..d479358f002
--- /dev/null
+++ b/clang/test/Parser/opencl-storage-class.cl
@@ -0,0 +1,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