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 | 5bc5cbe2a24d53c8bbbcce1a72f156957af45fde (patch) | |
tree | 12ac2ac42f07209bb65ca01072536066154d99c4 /clang/test/Parser | |
parent | 8981b3abe51e6231b82a24624d56e401713d879e (diff) | |
download | bcm5719-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')
-rw-r--r-- | clang/test/Parser/attributes.c | 1 | ||||
-rw-r--r-- | clang/test/Parser/cxx-attributes.cpp | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Parser/attributes.c b/clang/test/Parser/attributes.c index dc2bb02670c..cad39d382d1 100644 --- a/clang/test/Parser/attributes.c +++ b/clang/test/Parser/attributes.c @@ -51,3 +51,4 @@ int foo42(void) { // rdar://6096491 void __attribute__((noreturn)) d0(void), __attribute__((noreturn)) d1(void); +void d2(void) __attribute__((noreturn)), d3(void) __attribute__((noreturn)); 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) )) {}
+};
+
|