summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-12-04 18:25:34 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-12-04 18:25:34 +0000
commit4a7dc6e3e684449830aed0924519e080e54ff41b (patch)
tree23d1c31030e2e6928f7b8498f6b4bd84b6c15516
parenta10b311aeca09090228493700352687e878de245 (diff)
downloadbcm5719-llvm-4a7dc6e3e684449830aed0924519e080e54ff41b.tar.gz
bcm5719-llvm-4a7dc6e3e684449830aed0924519e080e54ff41b.zip
additional test for declaration tag of a class extension.
// rdar://12378714 llvm-svn: 169289
-rw-r--r--clang/test/Index/comment-objc-decls.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/Index/comment-objc-decls.m b/clang/test/Index/comment-objc-decls.m
index 7844ae59abd..2894ee88f52 100644
--- a/clang/test/Index/comment-objc-decls.m
+++ b/clang/test/Index/comment-objc-decls.m
@@ -80,6 +80,21 @@
// CHECK: <Declaration>@property ( readwrite,copy,atomic ) id PropertyMyClass</Declaration
/**
+ * \brief - This is class extension of MyClass
+*/
+@interface MyClass()
+{
+/**
+ * \brief IvarMyClassExtension - IvarMyClassExtension private to class extension
+*/
+ id IvarMyClassExtension;
+}
+@end
+// CHECK: <Declaration>@interface MyClass()\n{\n id IvarMyClassExtension;\n}\n@end</Declaration>
+// CHECK: <Declaration>id IvarMyClassExtension</Declaration>
+
+
+/**
* \brief MyClass (Category) is private to MyClass.
*/
@interface MyClass (Category)
OpenPOWER on IntegriCloud