voidf5(int)__attribute__((availability(ios,introduced=2.0)))__attribute__((availability(ios,deprecated=3.0)));// expected-note {{'f5' has been explicitly marked deprecated here}}
voidf6(int)__attribute__((availability(ios,deprecated=12.1)));// OK - not deprecated for watchOS
voidf7(int)__attribute__((availability(ios,deprecated=8.3)));// expected-note {{'f7' has been explicitly marked deprecated here}}
f4(0);// expected-error {{f4' is unavailable: obsoleted in watchOS 2.0}}
f5(0);// expected-warning {{'f5' is deprecated: first deprecated in watchOS 2.0}}
f6(0);
f7(0);// expected-warning {{'f7' is deprecated: first deprecated in watchOS 2.0}}
f8(0);// expected-error {{'f8' is unavailable: obsoleted in watchOS 3.0}}
}
// Test watchOS specific attributes.
voidf0_watchos(int)__attribute__((availability(watchos,introduced=2.0,deprecated=2.1)));// expected-note {{'f0_watchos' has been explicitly marked deprecated here}}
voidf2_watchos(int)__attribute__((availability(watchOS,introduced=2.0,deprecated=3.0)));// expected-note {{'f2_watchos' has been explicitly marked deprecated here}}
voidf5b_watchos(int)__attribute__((availability(watchos,introduced=2.0)))__attribute__((availability(watchos,deprecated=3.0)));// expected-note {{'f5b_watchos' has been explicitly marked deprecated here}}
voidf5c_watchos(int)__attribute__((availability(ios,introduced=2.0)))__attribute__((availability(ios,deprecated=3.0)));// expected-note {{'f5c_watchos' has been explicitly marked deprecated here}}