From: Fariborz Jahanian Date: Fri, 18 Feb 2011 22:37:54 +0000 (+0000) Subject: Test case for // rdar://8850818 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ab8063575d35ae65d04f6514da644e660d14847;p=clang Test case for // rdar://8850818 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125982 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaObjC/method-undefined-warn-1.m b/test/SemaObjC/method-undefined-warn-1.m index 1ebc59e96b..922a034799 100644 --- a/test/SemaObjC/method-undefined-warn-1.m +++ b/test/SemaObjC/method-undefined-warn-1.m @@ -40,3 +40,17 @@ - (void) cls_meth1 : (int) arg2{} @end + +// rdar://8850818 +@interface Root @end + +@interface Foo : Root @end + +@implementation Foo + +- (void)someFunction { return; } + ++ (void)anotherFunction { + [self someFunction]; // expected-warning {{method '+someFunction' not found (return type defaults to 'id')}} +} +@end