summaryrefslogtreecommitdiffstats
path: root/clang/test/Misc/ast-dump-attr.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-02-28 14:27:59 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-02-28 14:27:59 +0000
commit5edfdc4f00a443f98996c94ee0805500b17930a3 (patch)
tree2082199c9c833d2f631a05ffd06b3bd4455896fe /clang/test/Misc/ast-dump-attr.cpp
parentd0151cebcfa0f1fd029bd7232efb6cac52468b80 (diff)
downloadbcm5719-llvm-5edfdc4f00a443f98996c94ee0805500b17930a3.tar.gz
bcm5719-llvm-5edfdc4f00a443f98996c94ee0805500b17930a3.zip
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
Diffstat (limited to 'clang/test/Misc/ast-dump-attr.cpp')
-rw-r--r--clang/test/Misc/ast-dump-attr.cpp6
1 files changed, 5 insertions, 1 deletions
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))
OpenPOWER on IntegriCloud