Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -verify %s |
Fariborz Jahanian | b62f681 | 2007-10-16 20:40:23 +0000 | [diff] [blame] | 2 | |
Steve Naroff | 84c4310 | 2009-02-11 20:43:13 +0000 | [diff] [blame] | 3 | @interface Lancelot @end |
| 4 | @implementation Lancelot |
| 5 | |
| 6 | - (void):(int)x {} |
| 7 | - (void)xx:(int)x :(int)y { } |
| 8 | |
| 9 | @end |
| 10 | |
Fariborz Jahanian | 835ed7f | 2009-08-22 21:13:55 +0000 | [diff] [blame] | 11 | @interface I |
| 12 | - (id) compare: (char) arg1; |
| 13 | @end |
| 14 | |
| 15 | @interface J |
| 16 | - (id) compare: (id) arg1; |
| 17 | @end |
| 18 | |
| 19 | SEL foo() |
| 20 | { |
| 21 | return @selector(compare:); // Non warning on multiple selector found. |
| 22 | } |
| 23 | |
Fariborz Jahanian | b62f681 | 2007-10-16 20:40:23 +0000 | [diff] [blame] | 24 | int main() { |
| 25 | SEL s = @selector(retain); |
| 26 | SEL s1 = @selector(meth1:); |
| 27 | SEL s2 = @selector(retainArgument::); |
| 28 | SEL s3 = @selector(retainArgument:::::); |
| 29 | SEL s4 = @selector(retainArgument:with:); |
| 30 | SEL s5 = @selector(meth1:with:with:); |
| 31 | SEL s6 = @selector(getEnum:enum:bool:); |
| 32 | SEL s7 = @selector(char:float:double:unsigned:short:long:); |
| 33 | |
| 34 | SEL s9 = @selector(:enum:bool:); |
| 35 | } |