diff options
| author | Anastasia Stulova <anastasia.stulova@arm.com> | 2015-09-30 14:08:20 +0000 |
|---|---|---|
| committer | Anastasia Stulova <anastasia.stulova@arm.com> | 2015-09-30 14:08:20 +0000 |
| commit | bcea69669f3a2c0aa250274c4ccb823d24ee1f12 (patch) | |
| tree | d719c7a787dedea057a3cadab88f4a4e31764dab /clang/test/Parser | |
| parent | 48fefa3724c0d85b49dc78afd9b7c29ab560d190 (diff) | |
| download | bcm5719-llvm-bcea69669f3a2c0aa250274c4ccb823d24ee1f12.tar.gz bcm5719-llvm-bcea69669f3a2c0aa250274c4ccb823d24ee1f12.zip | |
[OpenCL 2.0] Enable program scope variables, Section 6.5.1.
- Remove virtual SC_OpenCLWorkGroupLocal storage type specifier
as it conflicts with static local variables now and prevents
diagnosing static local address space variables correctly.
- Allow static local and global variables (OpenCL2.0 s6.8 and s6.5.1).
- Improve diagnostics of allowed ASes for variables in different scopes:
(i) Global or static local variables have to be in global
or constant ASes (OpenCL1.2 s6.5, OpenCL2.0 s6.5.1);
(ii) Non-kernel function variables can't be declared in local
or constant ASes (OpenCL1.1 s6.5.2 and s6.5.3).
http://reviews.llvm.org/D13105
llvm-svn: 248906
Diffstat (limited to 'clang/test/Parser')
| -rw-r--r-- | clang/test/Parser/opencl-storage-class.cl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/opencl-storage-class.cl b/clang/test/Parser/opencl-storage-class.cl index 874329b62d5..3d9aef59f0b 100644 --- a/clang/test/Parser/opencl-storage-class.cl +++ b/clang/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; |

