2013-05-02 01:28:37 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: mkdir %t
|
2013-09-28 04:21:48 +08:00
|
|
|
// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-darwin10 -fobjc-arc %s > %t/out
|
2013-05-02 01:28:37 +08:00
|
|
|
// RUN: FileCheck %s < %t/out
|
|
|
|
// rdar://13757500
|
|
|
|
|
|
|
|
@class NSString;
|
|
|
|
|
|
|
|
@interface NSArray @end
|
|
|
|
|
|
|
|
@interface NSMutableArray : NSArray
|
|
|
|
{
|
|
|
|
//! This is the name.
|
|
|
|
NSString *Name;
|
|
|
|
}
|
|
|
|
//! This is WithLabel comment.
|
2013-05-02 04:53:21 +08:00
|
|
|
- (NSString *)WithLabel:(NSString * const)label;
|
|
|
|
// CHECK: <Declaration>- (NSString *)WithLabel:(NSString *const)label;</Declaration>
|
2013-05-02 01:28:37 +08:00
|
|
|
|
|
|
|
//! This is a property to get the Name.
|
|
|
|
@property (copy) NSString *Name;
|
2019-04-09 03:52:45 +08:00
|
|
|
// CHECK: <Declaration>@property(atomic, copy, readwrite) NSString *Name;</Declaration>
|
2013-05-02 01:28:37 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation NSMutableArray
|
|
|
|
{
|
|
|
|
//! This is private ivar
|
|
|
|
NSString *NickName;
|
|
|
|
// CHECK: <Declaration>NSString *NickName</Declaration>
|
|
|
|
}
|
|
|
|
|
2013-05-02 04:53:21 +08:00
|
|
|
- (NSString *)WithLabel:(NSString * const)label {
|
2013-05-02 01:28:37 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
@synthesize Name = Name;
|
|
|
|
@end
|