diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-12-04 18:25:34 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-12-04 18:25:34 +0000 |
commit | c2ef5ad5f498d327d5cf6c30b1e1bae861d124cd (patch) | |
tree | 42a1a0e49e9398df93f47fb1396758edc5d2b4d5 /test/Index/comment-objc-decls.m | |
parent | cff563c0123bbb8d959c93ed371d27cbc6bc4a29 (diff) |
additional test for declaration tag of a class extension.
// rdar://12378714
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/comment-objc-decls.m')
-rw-r--r-- | test/Index/comment-objc-decls.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Index/comment-objc-decls.m b/test/Index/comment-objc-decls.m index 7844ae59ab..2894ee88f5 100644 --- a/test/Index/comment-objc-decls.m +++ b/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) |