[cfe-commits] r125982 - /cfe/trunk/test/SemaObjC/method-undefined-warn-1.m

Fariborz Jahanian fjahanian at apple.com
Fri Feb 18 14:37:54 PST 2011


Author: fjahanian
Date: Fri Feb 18 16:37:54 2011
New Revision: 125982

URL: http://llvm.org/viewvc/llvm-project?rev=125982&view=rev
Log:
Test case for // rdar://8850818

Modified:
    cfe/trunk/test/SemaObjC/method-undefined-warn-1.m

Modified: cfe/trunk/test/SemaObjC/method-undefined-warn-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/method-undefined-warn-1.m?rev=125982&r1=125981&r2=125982&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/method-undefined-warn-1.m (original)
+++ cfe/trunk/test/SemaObjC/method-undefined-warn-1.m Fri Feb 18 16:37:54 2011
@@ -40,3 +40,17 @@
 - (void) cls_meth1 : (int) arg2{}
 @end
 
+
+// rdar://8850818
+ at interface Root @end
+
+ at interface Foo : Root @end
+
+ at implementation Foo
+
+- (void)someFunction { return; }
+
++ (void)anotherFunction {
+    [self someFunction]; // expected-warning {{method '+someFunction' not found (return type defaults to 'id')}}
+}
+ at end





More information about the cfe-commits mailing list