forked from OSchip/llvm-project
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:
parent
d0151cebcf
commit
5edfdc4f00
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue