summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/ast-print.cpp
diff options
context:
space:
mode:
authorAlexey Bader <aleksey.bader@mail.ru>2016-07-08 15:34:59 +0000
committerAlexey Bader <aleksey.bader@mail.ru>2016-07-08 15:34:59 +0000
commitc813c8113db77b11a32edbdb23c6cc9f441f7ea6 (patch)
tree5c99cd079ec521590555f7a13ab1f669099ba358 /clang/test/SemaCXX/ast-print.cpp
parent318d35a7bca6c4e54c75705245ee07277ac6e32c (diff)
downloadbcm5719-llvm-c813c8113db77b11a32edbdb23c6cc9f441f7ea6.tar.gz
bcm5719-llvm-c813c8113db77b11a32edbdb23c6cc9f441f7ea6.zip
[OpenCL] Fix access qualifiers handling for typedefs
OpenCL s6.6: "Access qualifier must be used with image object arguments of kernels and of user-defined functions [...] If no qualifier is provided, read_only is assumed". This does not define the behavior for image types used in typedef declaration, but following the spec logic, we should allow access qualifiers specification in typedefs, e.g.: typedef write_only image1d_t img1d_wo; Unlike cv-qualifiers, user cannot add access qualifier to a typedef type, i.e. this is not allowed: typedef image1d_t img1d; // note: previously declared 'read_only' here void foo(write_only img1d im) {} // error: multiple access qualifier Patch by Andrew Savonichev. Reviewers: Anastasia Stulova. Differential revision: http://reviews.llvm.org/D20948 llvm-svn: 274858
Diffstat (limited to 'clang/test/SemaCXX/ast-print.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud