The behavior looks incorrect to me, but the test is supposed to document
current behavior for now.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224875
91177308-0d34-0410-b5e6-
96231b3b80d8
@end
@interface InterfaceWithSameMethodAsUndeclaredImpl
-- (void)partiallyUnavailableMethod __attribute__((unavailable));
+- (void)partiallyUnavailableMethod __attribute__((unavailable)); // expected-note{{explicitly marked unavailable here}}
@end
void f(id a) {
- [a partiallyUnavailableMethod]; // no warning, `a` could be an UndeclaredImpl.
+ // FIXME: Warning on this looks incorrect, since `a` could be an
+ // UndeclaredImpl object, where this method isn't inavailable.
+ [a partiallyUnavailableMethod]; // expected-error{{is unavailable}}
}