2010-07-26 12:08:02 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2011-03-27 02:11:38 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify %s
|
2007-10-16 07:39:13 +08:00
|
|
|
|
2011-03-27 02:11:38 +08:00
|
|
|
// rdar://8366474
|
2007-10-16 07:39:13 +08:00
|
|
|
int main() {
|
2011-03-27 02:11:38 +08:00
|
|
|
SEL s = @selector(retain);
|
|
|
|
SEL s1 = @selector(meth1:);
|
|
|
|
SEL s2 = @selector(retainArgument::);
|
|
|
|
SEL s3 = @selector(retainArgument:::::);
|
|
|
|
SEL s4 = @selector(retainArgument:with:);
|
|
|
|
SEL s5 = @selector(meth1:with:with:);
|
|
|
|
SEL s6 = @selector(getEnum:enum:bool:);
|
|
|
|
SEL s7 = @selector(char:float:double:unsigned:short:long:);
|
|
|
|
SEL s9 = @selector(:enum:bool:);
|
|
|
|
|
|
|
|
(void) @selector(foo:);
|
|
|
|
(void) @selector(foo::);
|
|
|
|
(void) @selector(foo:::);
|
|
|
|
(void) @selector(foo::::);
|
2007-10-16 07:39:13 +08:00
|
|
|
}
|