Keep the source location of the selector in ObjCMessageExpr.
[clang.git] / test / SemaObjC / selector-error.m
blobdfd6bd053d192b1d6479cf791acca1d256e67007
1 // RUN: %clang_cc1  -fsyntax-only -verify %s
3 @interface Foo
4 - (char*) foo;
5 - (void) bar;
6 @end
8 @implementation Foo
9 - (void) bar
13 - (char*) foo
15   char* a,b,c;
16   a = (char*)@selector(bar);  // expected-error {{cannot type cast @selector expression}}
17   return (char*)@selector(bar);  // expected-error {{cannot type cast @selector expression}}
19 @end