blob: e9d2f19df1a1bdfacfdf0018d8d1c347f8238c3c [file] [log] [blame]
Fariborz Jahanian9464a082013-06-05 18:46:14 +00001// 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
Fariborz Jahaniand395e342013-06-17 17:10:54 +000031
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]; }
Fariborz Jahanian419245e2013-06-18 15:31:36 +000040- (void)OtherPrivateMeth : (id) p { int bounds = [p bonds]; }
Fariborz Jahaniand395e342013-06-17 17:10:54 +000041@end