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