]> granicus.if.org Git - clang/commitdiff
Test case for // rdar://8850818
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 18 Feb 2011 22:37:54 +0000 (22:37 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 18 Feb 2011 22:37:54 +0000 (22:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125982 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjC/method-undefined-warn-1.m

index 1ebc59e96b3b397dc3597a87c583766807934454..922a0347992b18c95b3184ab52ddcab7ed19857c 100644 (file)
 - (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