projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b79dff
)
Fix a non-conformant OpenCL test case.
author
Joey Gouly
<joey.gouly@arm.com>
Thu, 24 Jan 2013 15:24:54 +0000
(15:24 +0000)
committer
Joey Gouly
<joey.gouly@arm.com>
Thu, 24 Jan 2013 15:24:54 +0000
(15:24 +0000)
Program scope variables must be declared in the constant address space
and are required to be initialized.
llvm-svn: 173354
clang/test/SemaOpenCL/storageclass.cl
patch
|
blob
|
history
diff --git
a/clang/test/SemaOpenCL/storageclass.cl
b/clang/test/SemaOpenCL/storageclass.cl
index
c78e7cd
..
fdfe134
100644
(file)
--- a/
clang/test/SemaOpenCL/storageclass.cl
+++ b/
clang/test/SemaOpenCL/storageclass.cl
@@
-1,6
+1,6
@@
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL1.2
-static
int A
;
+static
constant int A = 0
;
// static is not allowed at local scope.
void kernel foo() {