From: Aaron Ballman Date: Fri, 28 Feb 2014 14:27:59 +0000 (+0000) Subject: Adding a test case to ensure that type attributes applied to the decl-specifier are... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb0b6efaa9810dd201c6f67c76ccfde35baac7de;p=clang Adding a test case to ensure that type attributes applied to the decl-specifier are applied across all declarations in a group. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202501 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Misc/ast-dump-attr.cpp b/test/Misc/ast-dump-attr.cpp index 1f0e780558..bb4be5b057 100644 --- a/test/Misc/ast-dump-attr.cpp +++ b/test/Misc/ast-dump-attr.cpp @@ -109,4 +109,8 @@ extern "C" int printf(const char *format, ...); // CHECK: FunctionDecl{{.*}}printf // CHECK-NEXT: ParmVarDecl{{.*}}format{{.*}}'const char *' // CHECK-NEXT: FormatAttr{{.*}}printf 1 2 Implicit -} \ No newline at end of file +} + +int __attribute__((cdecl)) TestOne(void), TestTwo(void); +// CHECK: FunctionDecl{{.*}}TestOne{{.*}}__attribute__((cdecl)) +// CHECK: FunctionDecl{{.*}}TestTwo{{.*}}__attribute__((cdecl))