Fariborz Jahanian | 9464a08 | 2013-06-05 18:46:14 +0000 | [diff] [blame] | 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 |
Fariborz Jahanian | d395e34 | 2013-06-17 17:10:54 +0000 | [diff] [blame] | 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]; } |
Fariborz Jahanian | 419245e | 2013-06-18 15:31:36 +0000 | [diff] [blame] | 40 | - (void)OtherPrivateMeth : (id) p { int bounds = [p bonds]; } |
Fariborz Jahanian | d395e34 | 2013-06-17 17:10:54 +0000 | [diff] [blame] | 41 | @end |