summaryrefslogtreecommitdiff
path: root/test/AST/ast-print-attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/AST/ast-print-attr.c')
-rw-r--r--test/AST/ast-print-attr.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/AST/ast-print-attr.c b/test/AST/ast-print-attr.c
new file mode 100644
index 0000000000000..223e27b397908
--- /dev/null
+++ b/test/AST/ast-print-attr.c
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -ast-print -x objective-c++ -fms-extensions %s -o - | FileCheck %s
+
+// CHECK: using A = __kindof id (*)[1];
+using A = __kindof id (*)[1];
+
+// CHECK: using B = int ** __ptr32 *[3];
+using B = int ** __ptr32 *[3];
+
+// FIXME: This is the wrong spelling for the attribute.
+// FIXME: Too many parens here!
+// CHECK: using C = int ((*))() __attribute__((cdecl));
+using C = int (*)() [[gnu::cdecl]];