diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
commit | 9f4dbff6669c8037f3b036bcf580d14f1a4f12a5 (patch) | |
tree | 47df2c12b57214af6c31e47404b005675b8b7ffc /test/FixIt/fixit-multiple-selector-warnings.m | |
parent | f73d5f23a889b93d89ddef61ac0995df40286bb8 (diff) |
Notes
Diffstat (limited to 'test/FixIt/fixit-multiple-selector-warnings.m')
-rw-r--r-- | test/FixIt/fixit-multiple-selector-warnings.m | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/FixIt/fixit-multiple-selector-warnings.m b/test/FixIt/fixit-multiple-selector-warnings.m new file mode 100644 index 000000000000..391728d0a9c1 --- /dev/null +++ b/test/FixIt/fixit-multiple-selector-warnings.m @@ -0,0 +1,26 @@ +/* RUN: cp %s %t + RUN: %clang_cc1 -x objective-c -Wselector-type-mismatch -fixit %t + RUN: %clang_cc1 -x objective-c -Wselector-type-mismatch -Werror %t +*/ +// rdar://16458579 + +@interface I +- (id) compare: (char) arg1; +- length; +@end + +@interface J +- (id) compare: (id) arg1; +@end + +SEL func() +{ + (void)@selector( compare: ); + (void)@selector (compare:); + (void)@selector( compare:); + (void)@selector(compare: ); + (void)@selector ( compare: ); + return @selector(compare:); +} + + |