Test case for // rdar://8850818

llvm-svn: 125982
This commit is contained in:
Fariborz Jahanian 2011-02-18 22:37:54 +00:00
parent 7e5d8aa6f9
commit 0dcb2a0d99
1 changed files with 14 additions and 0 deletions

View File

@ -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