blob: 69a74f830ce527fed921ad1a90e1be343137dc5f [file] [log] [blame]
Fariborz Jahaniana533af72011-02-04 23:30:23 +00001// RUN: %clang_cc1 -fsyntax-only -Wselector -verify %s
2// rdar://8851684
3
4@interface Foo
5- (void) foo;
6- (void) bar;
7@end
8
9@implementation Foo
10- (void) bar
11{
12}
13
14- (void) foo
15{
16 SEL a,b,c;
17 a = @selector(b1ar); // expected-warning {{unimplemented selector 'b1ar'}}
18 b = @selector(bar);
19}
20@end
21
22@interface I
23- length;
24@end
25
26SEL func()
27{
28 return @selector(length); // expected-warning {{unimplemented selector 'length'}}
29}