summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-08-09 01:21:06 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-08-09 01:21:06 +0000
commit89d9cc7da964273b7f6e7656ad22bd67eb4a09ba (patch)
treed1077ccda4bdc06e26778571627ae43c11fcafe6 /clang/test
parenta60d168d2253a060753ae208f77203601735a925 (diff)
downloadbcm5719-llvm-89d9cc7da964273b7f6e7656ad22bd67eb4a09ba.tar.gz
bcm5719-llvm-89d9cc7da964273b7f6e7656ad22bd67eb4a09ba.zip
Refactor attribute printing to be a bit more obviously-correct.
No functionality change intended. llvm-svn: 339306
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Misc/ast-print-attr.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Misc/ast-print-attr.c b/clang/test/Misc/ast-print-attr.c
new file mode 100644
index 00000000000..223e27b3979
--- /dev/null
+++ b/clang/test/Misc/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]];
OpenPOWER on IntegriCloud