summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-attributes.cpp
diff options
context:
space:
mode:
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>2009-11-25 22:58:06 +0000
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>2009-11-25 22:58:06 +0000
commit5bc5cbe2a24d53c8bbbcce1a72f156957af45fde (patch)
tree12ac2ac42f07209bb65ca01072536066154d99c4 /clang/test/Parser/cxx-attributes.cpp
parent8981b3abe51e6231b82a24624d56e401713d879e (diff)
downloadbcm5719-llvm-5bc5cbe2a24d53c8bbbcce1a72f156957af45fde.tar.gz
bcm5719-llvm-5bc5cbe2a24d53c8bbbcce1a72f156957af45fde.zip
Fix attribute between function decl ')' and '{' or '=0'
llvm-svn: 89894
Diffstat (limited to 'clang/test/Parser/cxx-attributes.cpp')
-rw-r--r--clang/test/Parser/cxx-attributes.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-attributes.cpp b/clang/test/Parser/cxx-attributes.cpp
new file mode 100644
index 00000000000..743d9b9ec1f
--- /dev/null
+++ b/clang/test/Parser/cxx-attributes.cpp
@@ -0,0 +1,9 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+class c {
+ virtual void f1(const char* a, ...)
+ __attribute__ (( __format__(__printf__,2,3) )) = 0;
+ virtual void f2(const char* a, ...)
+ __attribute__ (( __format__(__printf__,2,3) )) {}
+};
+
OpenPOWER on IntegriCloud