aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/opencl-storage-class.cl
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/opencl-storage-class.cl')
-rw-r--r--test/Parser/opencl-storage-class.cl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Parser/opencl-storage-class.cl b/test/Parser/opencl-storage-class.cl
index 874329b62d5a..3d9aef59f0bb 100644
--- a/test/Parser/opencl-storage-class.cl
+++ b/test/Parser/opencl-storage-class.cl
@@ -8,7 +8,7 @@ void test_storage_class_specs()
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;
+ static int e; // expected-error {{program scope variable must reside in constant address space}}
register int f;
extern int g;
auto int h;