Author: nico
Date: Fri Dec 26 19:05:55 2014
New Revision: 224873

URL: http://llvm.org/viewvc/llvm-project?rev=224873&view=rev
Log:
Add more test coverage for the Objective-C deprected selector warning.

I broke this case in a local patch I'm writing, and there was no test to stop
me.  Now there is.

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=224873&r1=224872&r2=224873&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/attr-deprecated.m (original)
+++ cfe/trunk/test/SemaObjC/attr-deprecated.m Fri Dec 26 19:05:55 2014
@@ -258,3 +258,14 @@ const char * func() {
 }
 @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.
+}


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to