diff options
author | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2009-11-25 22:58:06 +0000 |
---|---|---|
committer | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2009-11-25 22:58:06 +0000 |
commit | 1b2fc0f3e181d99fb34f60e711066fb11628ecd0 (patch) | |
tree | 6c02f9ca3bd0f6cd6ffc0e45ca20721f910d228b /test/Parser/cxx-attributes.cpp | |
parent | 3ad4104b19d821338499d01498c27ad2f3c42b04 (diff) |
Fix attribute between function decl ')' and '{' or '=0'
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89894 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-attributes.cpp')
-rw-r--r-- | test/Parser/cxx-attributes.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Parser/cxx-attributes.cpp b/test/Parser/cxx-attributes.cpp new file mode 100644 index 0000000000..743d9b9ec1 --- /dev/null +++ b/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) )) {}
+};
+
|