diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-01-14 17:41:53 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-01-14 17:41:53 +0000 |
commit | 26891338050e0570041cff565d041af56eaa26cd (patch) | |
tree | 5e7566e88e23cfff35d6ef1f02fea9ee0b4b1f08 /clang/test/SemaOpenCL | |
parent | 303eb178a9b3806563cf346ae03199192aa8720a (diff) | |
download | bcm5719-llvm-26891338050e0570041cff565d041af56eaa26cd.tar.gz bcm5719-llvm-26891338050e0570041cff565d041af56eaa26cd.zip |
Simplifying the OpenCL image attribute. It does not need a semantic integer parameter because the required information is encoded in the spelling. Added an appropriate subject to the attribute, and simplified the semantic checking (which will likely be expanded upon in a future patch). Also, removed the GNU spelling since it was unsupported in the first place.
llvm-svn: 199229
Diffstat (limited to 'clang/test/SemaOpenCL')
-rw-r--r-- | clang/test/SemaOpenCL/invalid-kernel-attrs.cl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/SemaOpenCL/invalid-kernel-attrs.cl b/clang/test/SemaOpenCL/invalid-kernel-attrs.cl index 83298369d3a..f766ade0587 100644 --- a/clang/test/SemaOpenCL/invalid-kernel-attrs.cl +++ b/clang/test/SemaOpenCL/invalid-kernel-attrs.cl @@ -28,5 +28,6 @@ constant int foo3 __attribute__((vec_type_hint(char))) = 0; // expected-error {{ void f_kernel_image2d_t( kernel image2d_t image ) { // expected-error {{'kernel' attribute only applies to functions}} int __kernel x; // expected-error {{'__kernel' attribute only applies to functions}} - + read_only int i; // expected-error {{'read_only' attribute only applies to parameters}} + __write_only int j; // expected-error {{'__write_only' attribute only applies to parameters}} } |