diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2011-10-06 03:01:00 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-10-06 03:01:00 +0000 |
| commit | 485b80feccf1d908e82cfecac8f28330cf4f3507 (patch) | |
| tree | 65b681beee63d3009279f8b865f88938ec5649c6 /clang/test/Parser | |
| parent | 6a0e48c74646ea7ae199de8cba9e95ebe49296ae (diff) | |
| download | bcm5719-llvm-485b80feccf1d908e82cfecac8f28330cf4f3507.tar.gz bcm5719-llvm-485b80feccf1d908e82cfecac8f28330cf4f3507.zip | |
OpenCL: add a non-standard extension, cl_clang_storage_class_specifiers,
which enables support for C99 storage-class specifiers.
This extension is intended to be used by implementations to implement
OpenCL C built-in functions.
llvm-svn: 141271
Diffstat (limited to 'clang/test/Parser')
| -rw-r--r-- | clang/test/Parser/opencl-storage-class.cl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Parser/opencl-storage-class.cl b/clang/test/Parser/opencl-storage-class.cl index d479358f002..874329b62d5 100644 --- a/clang/test/Parser/opencl-storage-class.cl +++ b/clang/test/Parser/opencl-storage-class.cl @@ -6,4 +6,10 @@ void test_storage_class_specs() register int b; // expected-error {{OpenCL does not support the 'register' storage class specifier}} extern int c; // expected-error {{OpenCL does not support the 'extern' storage class specifier}} 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; + register int f; + extern int g; + auto int h; } |

