2013-06-06 02:46:14 +08:00
|
|
|
// RUN: cp %s %t
|
|
|
|
// RUN: %clang_cc1 -x objective-c -Wundeclared-selector -fixit %t
|
|
|
|
// RUN: %clang_cc1 -x objective-c -Wundeclared-selector -Werror %t
|
|
|
|
// rdar://14039037
|
|
|
|
|
|
|
|
@interface NSObject @end
|
|
|
|
|
|
|
|
@interface LogoutController : NSObject
|
|
|
|
- (void)close;
|
|
|
|
- (void)closed;
|
|
|
|
- (void) open : (id) file_id;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation LogoutController
|
|
|
|
|
|
|
|
- (void)close { }
|
|
|
|
- (void)closed { }
|
|
|
|
|
|
|
|
- (SEL)Meth
|
|
|
|
{
|
|
|
|
return @selector(cloze);
|
|
|
|
}
|
|
|
|
- (void) open : (id) file_id {}
|
|
|
|
|
|
|
|
- (SEL)Meth1
|
|
|
|
{
|
|
|
|
return @selector(ope:);
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
2013-06-18 01:10:54 +08:00
|
|
|
|
|
|
|
// rdar://7853549
|
|
|
|
@interface rdar7853549 : NSObject
|
|
|
|
- (int) bounds;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation rdar7853549
|
|
|
|
- (int) bounds { return 0; }
|
|
|
|
- (void)PrivateMeth { int bounds = [self bonds]; }
|
2013-06-18 23:31:36 +08:00
|
|
|
- (void)OtherPrivateMeth : (id) p { int bounds = [p bonds]; }
|
2013-06-18 01:10:54 +08:00
|
|
|
@end
|