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 | b62f681 | 2007-10-16 20:40:23 +0000 | [diff] [blame] | 11 | int main() { |
| 12 | SEL s = @selector(retain); |
| 13 | SEL s1 = @selector(meth1:); |
| 14 | SEL s2 = @selector(retainArgument::); |
| 15 | SEL s3 = @selector(retainArgument:::::); |
| 16 | SEL s4 = @selector(retainArgument:with:); |
| 17 | SEL s5 = @selector(meth1:with:with:); |
| 18 | SEL s6 = @selector(getEnum:enum:bool:); |
| 19 | SEL s7 = @selector(char:float:double:unsigned:short:long:); |
| 20 | |
| 21 | SEL s9 = @selector(:enum:bool:); |
| 22 | } |