| 1 |
// RUN: rm -rf %t |
| 2 |
// RUN: %clang_cc1 -objcmt-migrate-readwrite-property -objcmt-migrate-readonly-property -mt-migrate-directory %t %s -x objective-c -fobjc-runtime-has-weak -fobjc-arc -triple x86_64-apple-darwin11 |
| 3 |
// RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result |
| 4 |
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c -fobjc-runtime-has-weak -fobjc-arc %s.result |
| 5 |
|
| 6 |
|
| 7 |
#define __NSi_7_0 introduced=7.0 |
| 8 |
#define __NSi_6_0 introduced=6.0 |
| 9 |
|
| 10 |
#define CF_AVAILABLE(_mac, _ios) __attribute__((availability(ios,__NSi_##_ios))) |
| 11 |
#define CF_AVAILABLE_MAC(_mac) __attribute__((availability(macosx,__NSi_##_mac))) |
| 12 |
#define CF_AVAILABLE_IOS(_ios) __attribute__((availability(macosx,unavailable))) |
| 13 |
|
| 14 |
#define NS_AVAILABLE(_mac, _ios) CF_AVAILABLE(_mac, _ios) |
| 15 |
#define NS_AVAILABLE_MAC(_mac) CF_AVAILABLE_MAC(_mac) |
| 16 |
#define NS_AVAILABLE_IOS(_ios) CF_AVAILABLE_IOS(_ios) |
| 17 |
|
| 18 |
#define UNAVAILABLE __attribute__((unavailable("not available in automatic reference counting mode"))) |
| 19 |
|
| 20 |
@interface MKMapItem |
| 21 |
@property (nonatomic, strong) MKMapItem *source NS_AVAILABLE(10_9, 6_0); |
| 22 |
- (void)setSource:(MKMapItem *)source NS_AVAILABLE(10_9, 7_0); |
| 23 |
|
| 24 |
@property (nonatomic, strong) MKMapItem *dest NS_AVAILABLE(10_9, 6_0); |
| 25 |
|
| 26 |
@property (nonatomic, strong) MKMapItem *final; |
| 27 |
|
| 28 |
@property (nonatomic, strong) MKMapItem *total NS_AVAILABLE(10_9, 6_0); |
| 29 |
- (void)setTotal:(MKMapItem *)source; |
| 30 |
|
| 31 |
- (MKMapItem *)comp NS_AVAILABLE(10_9, 6_0); |
| 32 |
- (void)setComp:(MKMapItem *)source UNAVAILABLE; |
| 33 |
|
| 34 |
@property (nonatomic, strong) MKMapItem *tally UNAVAILABLE NS_AVAILABLE(10_9, 6_0); |
| 35 |
|
| 36 |
- (MKMapItem *)itally NS_AVAILABLE(10_9, 6_0); |
| 37 |
- (void)setItally:(MKMapItem *)source UNAVAILABLE NS_AVAILABLE(10_9, 6_0); |
| 38 |
|
| 39 |
- (MKMapItem *)normal UNAVAILABLE; |
| 40 |
- (void)setNormal:(MKMapItem *)source UNAVAILABLE NS_AVAILABLE(10_9, 6_0); |
| 41 |
@end |
| 42 |
|