f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
41 lines
751 B
Objective-C
41 lines
751 B
Objective-C
// 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
|
|
|
|
// rdar://7853549
|
|
@interface rdar7853549 : NSObject
|
|
- (int) bounds;
|
|
@end
|
|
|
|
@implementation rdar7853549
|
|
- (int) bounds { return 0; }
|
|
- (void)PrivateMeth { int bounds = [self bonds]; }
|
|
- (void)OtherPrivateMeth : (id) p { int bounds = [p bonds]; }
|
|
@end
|