summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaOpenCL
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2013-04-04 23:45:52 +0000
committerTanya Lattner <tonic@nondot.org>2013-04-04 23:45:52 +0000
commit9a13c3e6833ddbff69fcbf90a19c040cf01e7974 (patch)
treea53e637d2442c052ba75828bad892467e92034ea /clang/test/SemaOpenCL
parenta16cb16a58c1bcdc15bd932bce34c15123c106ca (diff)
downloadbcm5719-llvm-9a13c3e6833ddbff69fcbf90a19c040cf01e7974.tar.gz
bcm5719-llvm-9a13c3e6833ddbff69fcbf90a19c040cf01e7974.zip
Revert 178811 until I fix the unit tests.
llvm-svn: 178813
Diffstat (limited to 'clang/test/SemaOpenCL')
-rw-r--r--clang/test/SemaOpenCL/event_t.cl2
-rw-r--r--clang/test/SemaOpenCL/storageclass.cl2
2 files changed, 1 insertions, 3 deletions
diff --git a/clang/test/SemaOpenCL/event_t.cl b/clang/test/SemaOpenCL/event_t.cl
index 06197d0c179..57a0981cf13 100644
--- a/clang/test/SemaOpenCL/event_t.cl
+++ b/clang/test/SemaOpenCL/event_t.cl
@@ -2,7 +2,7 @@
event_t glb_evt; // expected-error {{the event_t type cannot be used to declare a program scope variable}}
-constant struct evt_s {
+struct evt_s {
event_t evt; // expected-error {{the event_t type cannot be used to declare a structure or union field}}
} evt_str;
diff --git a/clang/test/SemaOpenCL/storageclass.cl b/clang/test/SemaOpenCL/storageclass.cl
index d2678f2010d..fdfe1346218 100644
--- a/clang/test/SemaOpenCL/storageclass.cl
+++ b/clang/test/SemaOpenCL/storageclass.cl
@@ -2,8 +2,6 @@
static constant int A = 0;
-int X = 0; // expected-error{{global variables must have a constant address space qualifier}}
-
// static is not allowed at local scope.
void kernel foo() {
static int X = 5; // expected-error{{variables in function scope cannot be declared static}}
OpenPOWER on IntegriCloud