Thanks to Nico Weber for pointing this out!
Differential revision: https://reviews.llvm.org/D23024
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277378
91177308-0d34-0410-b5e6-
96231b3b80d8
DeclVersion = AA->getIntroduced();
}
- return DeclVersion;
+ return std::max(DeclVersion, Context.getTargetInfo().getPlatformMinVersion());
}
#if defined(WARN_PARTIAL)
+int fn_10_5() __attribute__((availability(macosx, introduced=10.5)));
int fn_10_7() __attribute__((availability(macosx, introduced=10.7))); // expected-note{{marked partial here}}
int fn_10_8() __attribute__((availability(macosx, introduced=10.8))) { // expected-note{{marked partial here}}
return fn_10_7();
-(void)method4 { fn_10_8(); }
@end
+int old_func() __attribute__((availability(macos, introduced=10.4))) {
+ fn_10_5();
+}
+
#endif