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
This commit is contained in:
Aaron Ballman 2014-02-28 14:27:59 +00:00
parent d0151cebcf
commit 5edfdc4f00
1 changed files with 5 additions and 1 deletions

View File

@ -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
}
}
int __attribute__((cdecl)) TestOne(void), TestTwo(void);
// CHECK: FunctionDecl{{.*}}TestOne{{.*}}__attribute__((cdecl))
// CHECK: FunctionDecl{{.*}}TestTwo{{.*}}__attribute__((cdecl))