blob: f6ed13190ed818db72a14f77e0fe5ec714564969 [file] [log] [blame]
Douglas Gregor0a0d2b12011-03-23 00:50:03 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3void f0() __attribute__((availability(macosx,introduced=10.4,deprecated=10.2))); // expected-warning{{feature cannot be deprecated in Mac OS X version 10.2 before it was introduced in version 10.4; attribute ignored}}
4void f1() __attribute__((availability(ios,obsoleted=2.1,deprecated=3.0))); // expected-warning{{feature cannot be obsoleted in iOS version 2.1 before it was deprecated in version 3.0; attribute ignored}}
Douglas Gregor3b6b7ac2011-08-10 15:31:35 +00005void f2() __attribute__((availability(ios,introduced=2.1,deprecated=2.1)));
Douglas Gregor0a0d2b12011-03-23 00:50:03 +00006
Douglas Gregor3b6b7ac2011-08-10 15:31:35 +00007void f3() __attribute__((availability(otheros,introduced=2.2))); // expected-warning{{unknown platform 'otheros' in availability macro}}