]> granicus.if.org Git - clang/commitdiff
Adding a test case to ensure that type attributes applied to the decl-specifier are...
authorAaron Ballman <aaron@aaronballman.com>
Fri, 28 Feb 2014 14:27:59 +0000 (14:27 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 28 Feb 2014 14:27:59 +0000 (14:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202501 91177308-0d34-0410-b5e6-96231b3b80d8

test/Misc/ast-dump-attr.cpp

index 1f0e780558fdb5a5414258a7c3c31de2017d3d0b..bb4be5b057a0c9e58890907aaa714eb203f6c2f7 100644 (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
-}
\ No newline at end of file
+}
+
+int __attribute__((cdecl)) TestOne(void), TestTwo(void);
+// CHECK: FunctionDecl{{.*}}TestOne{{.*}}__attribute__((cdecl))
+// CHECK: FunctionDecl{{.*}}TestTwo{{.*}}__attribute__((cdecl))