1// RUN: rm -rf %t 2// RUN: mkdir %t 3// 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 4// RUN: FileCheck %s < %t/out 5// rdar://13757500 6 7@class NSString; 8 9@interface NSArray @end 10 11@interface NSMutableArray : NSArray 12{ 13//! This is the name. 14 NSString *Name; 15} 16//! This is WithLabel comment. 17- (NSString *)WithLabel:(NSString * const)label; 18// CHECK: <Declaration>- (NSString *)WithLabel:(NSString *const)label;</Declaration> 19 20//! This is a property to get the Name. 21@property (copy) NSString *Name; 22// CHECK: <Declaration>@property(readwrite, copy, atomic) NSString *Name;</Declaration> 23@end 24 25@implementation NSMutableArray 26{ 27//! This is private ivar 28 NSString *NickName; 29// CHECK: <Declaration>NSString *NickName</Declaration> 30} 31 32- (NSString *)WithLabel:(NSString * const)label { 33 return 0; 34} 35@synthesize Name = Name; 36@end 37