blob: e9e1ceee236be13b3c7be39f25c97a46c3d75c4e [file] [log] [blame]
Fariborz Jahanian9e075842013-05-01 17:28:37 +00001// RUN: rm -rf %t
2// RUN: mkdir %t
Rafael Espindolaea1ba0a2013-09-27 20:21:48 +00003// 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
Fariborz Jahanian9e075842013-05-01 17:28:37 +00004// 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.
Fariborz Jahanianb5f34682013-05-01 20:53:21 +000017- (NSString *)WithLabel:(NSString * const)label;
18// CHECK: <Declaration>- (NSString *)WithLabel:(NSString *const)label;</Declaration>
Fariborz Jahanian9e075842013-05-01 17:28:37 +000019
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
Fariborz Jahanianb5f34682013-05-01 20:53:21 +000032- (NSString *)WithLabel:(NSString * const)label {
Fariborz Jahanian9e075842013-05-01 17:28:37 +000033 return 0;
34}
35@synthesize Name = Name;
36@end