blob: f59dec812b702e02676ed0d22b7155930a401844 [file] [log] [blame]
Patrick Beardb2f68202012-04-06 18:12:22 +00001// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %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