blob: dfd6bd053d192b1d6479cf791acca1d256e67007 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Fariborz Jahanianb5ff6bf2009-05-22 21:42:52 +00002
3@interface Foo
4- (char*) foo;
5- (void) bar;
6@end
7
8@implementation Foo
9- (void) bar
10{
11}
12
13- (char*) foo
14{
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}}
18}
19@end
20