36 lines · plain
1// RUN: rm -rf %t2// RUN: mkdir %t3// 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/out4// RUN: FileCheck %s < %t/out5 6@class NSString;7 8@interface NSArray @end9 10@interface NSMutableArray : NSArray 11{12//! This is the name.13 NSString *Name;14}15//! This is WithLabel comment.16- (NSString *)WithLabel:(NSString * const)label;17// CHECK: <Declaration>- (NSString *)WithLabel:(NSString *const)label;</Declaration> 18 19//! This is a property to get the Name.20@property (copy) NSString *Name;21// CHECK: <Declaration>@property(atomic, copy, readwrite) NSString *Name;</Declaration>22@end23 24@implementation NSMutableArray25{26//! This is private ivar27 NSString *NickName;28// CHECK: <Declaration>NSString *NickName</Declaration>29}30 31- (NSString *)WithLabel:(NSString * const)label {32 return 0;33}34@synthesize Name = Name;35@end36