From: Fariborz Jahanian Date: Mon, 8 Jul 2013 23:29:51 +0000 (+0000) Subject: ObjC migration: more test for migration to X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=631435fbc44c77e828f673d3e05c093dffc1a127;p=clang ObjC migration: more test for migration to properties. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185884 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/ARCMT/objcmt-property.m b/test/ARCMT/objcmt-property.m index d13a491a89..b264658471 100644 --- a/test/ARCMT/objcmt-property.m +++ b/test/ARCMT/objcmt-property.m @@ -28,3 +28,22 @@ @implementation I @end + +@class NSArray; + +@interface MyClass2 { +@private + NSArray *_names1; + NSArray *_names2; + NSArray *_names3; + NSArray *_names4; +} +- (void)setNames1:(NSArray *)names; +- (void)setNames4:(__strong NSArray *)names; +- (void)setNames3:(__strong NSArray *)names; +- (void)setNames2:(NSArray *)names; +- (NSArray *) names2; +- (NSArray *)names3; +- (__strong NSArray *)names4; +- (NSArray *) names1; +@end diff --git a/test/ARCMT/objcmt-property.m.result b/test/ARCMT/objcmt-property.m.result index 771d8634bf..f9d1986484 100644 --- a/test/ARCMT/objcmt-property.m.result +++ b/test/ARCMT/objcmt-property.m.result @@ -28,3 +28,22 @@ @implementation I @end + +@class NSArray; + +@interface MyClass2 { +@private + NSArray *_names1; + NSArray *_names2; + NSArray *_names3; + NSArray *_names4; +} + + + + +@property(strong) NSArray * names2; +@property(strong) NSArray * names3; +@property(strong) NSArray *__strong names4; +@property(strong) NSArray * names1; +@end