Fariborz Jahanian | db1519a | 2013-05-01 17:28:37 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: mkdir %t |
Fariborz Jahanian | f1d6d14 | 2013-05-01 17:58:21 +0000 | [diff] [blame] | 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-default-synthesize-properties -fobjc-arc %s > %t/out |
Fariborz Jahanian | db1519a | 2013-05-01 17:28:37 +0000 | [diff] [blame] | 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. |
Fariborz Jahanian | a3ae52b | 2013-05-01 20:53:21 +0000 | [diff] [blame] | 17 | - (NSString *)WithLabel:(NSString * const)label; |
| 18 | // CHECK: <Declaration>- (NSString *)WithLabel:(NSString *const)label;</Declaration> |
Fariborz Jahanian | db1519a | 2013-05-01 17:28:37 +0000 | [diff] [blame] | 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 | |
Fariborz Jahanian | a3ae52b | 2013-05-01 20:53:21 +0000 | [diff] [blame] | 32 | - (NSString *)WithLabel:(NSString * const)label { |
Fariborz Jahanian | db1519a | 2013-05-01 17:28:37 +0000 | [diff] [blame] | 33 | return 0; |
| 34 | } |
| 35 | @synthesize Name = Name; |
| 36 | @end |