I broke this case in a local patch I'm writing, and there was no test to stop
me. Now there is.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224873
91177308-0d34-0410-b5e6-
96231b3b80d8
}
@end
+@implementation UndeclaredImpl // expected-warning{{cannot find interface declaration}}
+- (void)partiallyUnavailableMethod {}
+@end
+
+@interface InterfaceWithSameMethodAsUndeclaredImpl
+- (void)partiallyUnavailableMethod __attribute__((unavailable));
+@end
+
+void f(id a) {
+ [a partiallyUnavailableMethod]; // no warning, `a` could be an UndeclaredImpl.
+}