diff options
author | Joey Gouly <joey.gouly@arm.com> | 2013-01-24 15:24:54 +0000 |
---|---|---|
committer | Joey Gouly <joey.gouly@arm.com> | 2013-01-24 15:24:54 +0000 |
commit | 68bb7a6b1febbb96a60eef4e541a657c414bfda8 (patch) | |
tree | 5d655032cfcfd29e6bca3d613449ae0b85cd0578 | |
parent | ec07557a1e43ca0e7d0b6af0e69e18caaf1f0635 (diff) |
Fix a non-conformant OpenCL test case.
Program scope variables must be declared in the constant address space
and are required to be initialized.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173354 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/SemaOpenCL/storageclass.cl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaOpenCL/storageclass.cl b/test/SemaOpenCL/storageclass.cl index c78e7cd436..fdfe134621 100644 --- a/test/SemaOpenCL/storageclass.cl +++ b/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() { |