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