| 1 |
/* RUN: cp %s %t |
| 2 |
RUN: %clang_cc1 -x objective-c -Wselector-type-mismatch -fixit %t |
| 3 |
RUN: %clang_cc1 -x objective-c -Wselector-type-mismatch -Werror %t |
| 4 |
*/ |
| 5 |
|
| 6 |
@interface I |
| 7 |
- (id) compare: (char) arg1; |
| 8 |
- length; |
| 9 |
@end |
| 10 |
|
| 11 |
@interface J |
| 12 |
- (id) compare: (id) arg1; |
| 13 |
@end |
| 14 |
|
| 15 |
SEL func(void) |
| 16 |
{ |
| 17 |
(void)@selector( compare: ); |
| 18 |
(void)@selector (compare:); |
| 19 |
(void)@selector( compare:); |
| 20 |
(void)@selector(compare: ); |
| 21 |
(void)@selector ( compare: ); |
| 22 |
return @selector(compare:); |
| 23 |
} |
| 24 |
|
| 25 |
|