2013-07-09 05:42:08 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: %clang_cc1 -objcmt-migrate-literals -objcmt-migrate-subscripting -mt-migrate-directory %t %s -x objective-c -fobjc-runtime-has-weak -fobjc-arc -fobjc-default-synthesize-properties -triple x86_64-apple-darwin11
|
|
|
|
// RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c -fobjc-runtime-has-weak -fobjc-arc -fobjc-default-synthesize-properties %s.result
|
|
|
|
|
|
|
|
@class NSString;
|
|
|
|
@interface NSObject @end
|
|
|
|
|
|
|
|
@interface I : NSObject {
|
|
|
|
int ivarVal;
|
|
|
|
}
|
|
|
|
|
|
|
|
@property(weak) NSString *__weak WeakProp;
|
|
|
|
|
|
|
|
@property(strong) NSString * StrongProp;
|
|
|
|
|
2013-07-09 06:49:25 +08:00
|
|
|
|
|
|
|
- (NSString *) UnavailProp __attribute__((unavailable));
|
|
|
|
- (void) setUnavailProp : (NSString *)Val;
|
|
|
|
|
|
|
|
- (NSString *) UnavailProp1 __attribute__((unavailable));
|
|
|
|
- (void) setUnavailProp1 : (NSString *)Val __attribute__((unavailable));
|
|
|
|
|
|
|
|
- (NSString *) UnavailProp2;
|
|
|
|
- (void) setUnavailProp2 : (NSString *)Val __attribute__((unavailable));
|
|
|
|
|
2013-07-09 05:42:08 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation I
|
|
|
|
@end
|