summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/access-spec-attrs.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-12-14 01:05:01 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-12-14 01:05:01 +0000
commit706f315e65841a964029c950e8569e6403f7793f (patch)
treef90820dcafe3c83fa60f989422230a25ae75a29a /clang/test/Parser/access-spec-attrs.cpp
parent0cb861634b680b76985a5fbd7240fe3084884daf (diff)
downloadbcm5719-llvm-706f315e65841a964029c950e8569e6403f7793f.tar.gz
bcm5719-llvm-706f315e65841a964029c950e8569e6403f7793f.zip
Sema: attribute((annotate)) must have at least one argument
Sema::handleAnnotateAttr expects that some basic validation is done on the given AttributeList. However, ProcessAccessDeclAttributeList called it directly. Instead, pass the list to ProcessDeclAttribute. This fixes PR21847. llvm-svn: 224204
Diffstat (limited to 'clang/test/Parser/access-spec-attrs.cpp')
-rw-r--r--clang/test/Parser/access-spec-attrs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Parser/access-spec-attrs.cpp b/clang/test/Parser/access-spec-attrs.cpp
index 4fa59758116..2958e385f8b 100644
--- a/clang/test/Parser/access-spec-attrs.cpp
+++ b/clang/test/Parser/access-spec-attrs.cpp
@@ -5,6 +5,7 @@ public __attribute__((unavailable)): // expected-error {{access specifier can on
void foo();
private __attribute__((annotate("foobar"))):
void bar();
+private __attribute__((annotate())): // expected-error {{'annotate' attribute takes one argument}}
};
void f(X x) {
OpenPOWER on IntegriCloud