brintos

brintos / llvm-project-archived public Read only

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