blob: 9a7375b8d288dfba85fd5df4623e59943acc5423 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -verify %s
Fariborz Jahanianb62f6812007-10-16 20:40:23 +00002
Steve Naroff84c43102009-02-11 20:43:13 +00003@interface Lancelot @end
4@implementation Lancelot
5
6- (void):(int)x {}
7- (void)xx:(int)x :(int)y { }
8
9@end
10
Fariborz Jahanian835ed7f2009-08-22 21:13:55 +000011@interface I
12- (id) compare: (char) arg1;
13@end
14
15@interface J
16- (id) compare: (id) arg1;
17@end
18
19SEL foo()
20{
21 return @selector(compare:); // Non warning on multiple selector found.
22}
23
Fariborz Jahanianb62f6812007-10-16 20:40:23 +000024int 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}