r224875 - Make the test from r224873 actually pass.

Nico Weber nicolasweber at gmx.de
Fri Dec 26 19:38:18 PST 2014


Author: nico
Date: Fri Dec 26 21:38:18 2014
New Revision: 224875

URL: http://llvm.org/viewvc/llvm-project?rev=224875&view=rev
Log:
Make the test from r224873 actually pass.

The behavior looks incorrect to me, but the test is supposed to document
current behavior for now.

Modified:
    cfe/trunk/test/SemaObjC/attr-deprecated.m

Modified: cfe/trunk/test/SemaObjC/attr-deprecated.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/attr-deprecated.m?rev=224875&r1=224874&r2=224875&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/attr-deprecated.m (original)
+++ cfe/trunk/test/SemaObjC/attr-deprecated.m Fri Dec 26 21:38:18 2014
@@ -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}}
 }





More information about the cfe-commits mailing list