Douglas Gregor | 87c3007 | 2010-07-26 04:08:02 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Chris Lattner | 3b3e1a9 | 2011-03-26 18:11:38 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 3 | // expected-no-diagnostics |
Fariborz Jahanian | a0818e3 | 2007-10-15 23:39:13 +0000 | [diff] [blame] | 4 | |
Chris Lattner | 3b3e1a9 | 2011-03-26 18:11:38 +0000 | [diff] [blame] | 5 | // rdar://8366474 |
Fariborz Jahanian | a0818e3 | 2007-10-15 23:39:13 +0000 | [diff] [blame] | 6 | int main() { |
Chris Lattner | 3b3e1a9 | 2011-03-26 18:11:38 +0000 | [diff] [blame] | 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::::); |
Fariborz Jahanian | a0818e3 | 2007-10-15 23:39:13 +0000 | [diff] [blame] | 21 | } |