1*f4a2713aSLionel Sambuc// RUN: cp %s %t 2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c -Wundeclared-selector -fixit %t 3*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c -Wundeclared-selector -Werror %t 4*f4a2713aSLionel Sambuc// rdar://14039037 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc@interface NSObject @end 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc@interface LogoutController : NSObject 9*f4a2713aSLionel Sambuc- (void)close; 10*f4a2713aSLionel Sambuc- (void)closed; 11*f4a2713aSLionel Sambuc- (void) open : (id) file_id; 12*f4a2713aSLionel Sambuc@end 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambuc@implementation LogoutController 15*f4a2713aSLionel Sambuc 16*f4a2713aSLionel Sambuc- (void)close { } 17*f4a2713aSLionel Sambuc- (void)closed { } 18*f4a2713aSLionel Sambuc 19*f4a2713aSLionel Sambuc- (SEL)Meth 20*f4a2713aSLionel Sambuc{ 21*f4a2713aSLionel Sambuc return @selector(cloze); 22*f4a2713aSLionel Sambuc} 23*f4a2713aSLionel Sambuc- (void) open : (id) file_id {} 24*f4a2713aSLionel Sambuc 25*f4a2713aSLionel Sambuc- (SEL)Meth1 26*f4a2713aSLionel Sambuc{ 27*f4a2713aSLionel Sambuc return @selector(ope:); 28*f4a2713aSLionel Sambuc} 29*f4a2713aSLionel Sambuc 30*f4a2713aSLionel Sambuc@end 31*f4a2713aSLionel Sambuc 32*f4a2713aSLionel Sambuc// rdar://7853549 33*f4a2713aSLionel Sambuc@interface rdar7853549 : NSObject 34*f4a2713aSLionel Sambuc- (int) bounds; 35*f4a2713aSLionel Sambuc@end 36*f4a2713aSLionel Sambuc 37*f4a2713aSLionel Sambuc@implementation rdar7853549 38*f4a2713aSLionel Sambuc- (int) bounds { return 0; } 39*f4a2713aSLionel Sambuc- (void)PrivateMeth { int bounds = [self bonds]; } 40*f4a2713aSLionel Sambuc- (void)OtherPrivateMeth : (id) p { int bounds = [p bonds]; } 41*f4a2713aSLionel Sambuc@end 42