xref: /minix3/external/bsd/llvm/dist/clang/test/FixIt/fixit-multiple-selector-warnings.m (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc/* RUN: cp %s %t
2*0a6a1f1dSLionel Sambuc   RUN: %clang_cc1 -x objective-c -Wselector-type-mismatch -fixit %t
3*0a6a1f1dSLionel Sambuc   RUN: %clang_cc1 -x objective-c -Wselector-type-mismatch -Werror %t
4*0a6a1f1dSLionel Sambuc*/
5*0a6a1f1dSLionel Sambuc// rdar://16458579
6*0a6a1f1dSLionel Sambuc
7*0a6a1f1dSLionel Sambuc@interface I
8*0a6a1f1dSLionel Sambuc- (id) compare: (char) arg1;
9*0a6a1f1dSLionel Sambuc- length;
10*0a6a1f1dSLionel Sambuc@end
11*0a6a1f1dSLionel Sambuc
12*0a6a1f1dSLionel Sambuc@interface J
13*0a6a1f1dSLionel Sambuc- (id) compare: (id) arg1;
14*0a6a1f1dSLionel Sambuc@end
15*0a6a1f1dSLionel Sambuc
16*0a6a1f1dSLionel SambucSEL func()
17*0a6a1f1dSLionel Sambuc{
18*0a6a1f1dSLionel Sambuc        (void)@selector( compare: );
19*0a6a1f1dSLionel Sambuc        (void)@selector (compare:);
20*0a6a1f1dSLionel Sambuc        (void)@selector( compare:);
21*0a6a1f1dSLionel Sambuc        (void)@selector(compare: );
22*0a6a1f1dSLionel Sambuc        (void)@selector ( compare: );
23*0a6a1f1dSLionel Sambuc	return @selector(compare:);
24*0a6a1f1dSLionel Sambuc}
25*0a6a1f1dSLionel Sambuc
26*0a6a1f1dSLionel Sambuc
27