From cb0b6efaa9810dd201c6f67c76ccfde35baac7de Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 28 Feb 2014 14:27:59 +0000 Subject: [PATCH] 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 --- test/Misc/ast-dump-attr.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)) -- 2.50.1