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
7 #define __NSi_7_0 introduced=7.0
8 #define __NSi_6_0 introduced=6.0
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)))
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)
18 #define UNAVAILABLE __attribute__((unavailable("not available in automatic reference counting mode")))
21 - (MKMapItem *)source NS_AVAILABLE(10_9, 6_0);
22 - (void)setSource:(MKMapItem *)source NS_AVAILABLE(10_9, 7_0);
24 - (void)setDest:(MKMapItem *)source NS_AVAILABLE(10_9, 6_0);
25 - (MKMapItem *)dest NS_AVAILABLE(10_9, 6_0);
28 - (void)setFinal:(MKMapItem *)source;
30 - (MKMapItem *)total NS_AVAILABLE(10_9, 6_0);
31 - (void)setTotal:(MKMapItem *)source;
33 - (MKMapItem *)comp NS_AVAILABLE(10_9, 6_0);
34 - (void)setComp:(MKMapItem *)source UNAVAILABLE;
36 - (MKMapItem *)tally UNAVAILABLE NS_AVAILABLE(10_9, 6_0);
37 - (void)setTally:(MKMapItem *)source UNAVAILABLE NS_AVAILABLE(10_9, 6_0);
39 - (MKMapItem *)itally NS_AVAILABLE(10_9, 6_0);
40 - (void)setItally:(MKMapItem *)source UNAVAILABLE NS_AVAILABLE(10_9, 6_0);
42 - (MKMapItem *)normal UNAVAILABLE;
43 - (void)setNormal:(MKMapItem *)source UNAVAILABLE NS_AVAILABLE(10_9, 6_0);