1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify %s |
3 | // expected-no-diagnostics |
4 | |
5 | // rdar://8366474 |
6 | int main() { |
7 | SEL s = @selector(retain); |
8 | SEL s1 = @selector(meth1:); |
9 | SEL s2 = @selector(retainArgument::); |
10 | SEL s3 = @selector(retainArgument:::::); |
11 | SEL s4 = @selector(retainArgument:with:); |
12 | SEL s5 = @selector(meth1:with:with:); |
13 | SEL s6 = @selector(getEnum:enum:bool:); |
14 | SEL s7 = @selector(char:float:double:unsigned:short:long:); |
15 | SEL s9 = @selector(:enum:bool:); |
16 | |
17 | (void) @selector(foo:); |
18 | (void) @selector(foo::); |
19 | (void) @selector(foo:::); |
20 | (void) @selector(foo::::); |
21 | } |
22 | |