From: Nico Weber Date: Sat, 27 Dec 2014 03:38:18 +0000 (+0000) Subject: Make the test from r224873 actually pass. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a1f570267d2f51b3398d2e4d5f995d818929e80;p=clang Make the test from r224873 actually pass. 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 --- diff --git a/test/SemaObjC/attr-deprecated.m b/test/SemaObjC/attr-deprecated.m index 02acf2ced2..416e464101 100644 --- a/test/SemaObjC/attr-deprecated.m +++ b/test/SemaObjC/attr-deprecated.m @@ -263,9 +263,11 @@ const char * func() { @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}} }