From 5edfdc4f00a443f98996c94ee0805500b17930a3 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 28 Feb 2014 14:27:59 +0000 Subject: Adding a test case to ensure that type attributes applied to the decl-specifier are applied across all declarations in a group. llvm-svn: 202501 --- clang/test/Misc/ast-dump-attr.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'clang/test/Misc/ast-dump-attr.cpp') diff --git a/clang/test/Misc/ast-dump-attr.cpp b/clang/test/Misc/ast-dump-attr.cpp index 1f0e780558f..bb4be5b057a 100644 --- a/clang/test/Misc/ast-dump-attr.cpp +++ b/clang/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)) -- cgit v1.2.3