blob: 16d44cbb5515743f3cff58c2422cad772a66ffa3 [file] [log] [blame]
Fariborz Jahanian1e99a772011-02-04 23:30:23 +00001// RUN: %clang_cc1 -verify %s
Steve Naroff84c43102009-02-11 20:43:13 +00002
Fariborz Jahanian835ed7f2009-08-22 21:13:55 +00003@interface I
Fariborz Jahanian1e99a772011-02-04 23:30:23 +00004- (id) compare: (char) arg1;
Fariborz Jahanian8b789132011-02-04 23:19:27 +00005- length;
Fariborz Jahanian835ed7f2009-08-22 21:13:55 +00006@end
7
Fariborz Jahanian1e99a772011-02-04 23:30:23 +00008@interface J
9- (id) compare: (id) arg1;
10@end
11
Fariborz Jahanian8b789132011-02-04 23:19:27 +000012SEL func()
Fariborz Jahanian835ed7f2009-08-22 21:13:55 +000013{
Fariborz Jahanian1e99a772011-02-04 23:30:23 +000014 return @selector(compare:); // Non warning on multiple selector found.
15}
16
17int main() {
18 SEL s = @selector(retain);
19 SEL s1 = @selector(meth1:);
20 SEL s2 = @selector(retainArgument::);
21 SEL s3 = @selector(retainArgument:::::);
22 SEL s4 = @selector(retainArgument:with:);
23 SEL s5 = @selector(meth1:with:with:);
24 SEL s6 = @selector(getEnum:enum:bool:);
25 SEL s7 = @selector(char:float:double:unsigned:short:long:);
26
27 SEL s9 = @selector(:enum:bool:);
Fariborz Jahanianb62f6812007-10-16 20:40:23 +000028}