2011-02-05 07:19:27 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -Wselector -verify %s
|
|
|
|
// rdar://8851684
|
2007-10-17 04:40:23 +08:00
|
|
|
|
2011-02-05 07:19:27 +08:00
|
|
|
@interface Foo
|
|
|
|
- (void) foo;
|
|
|
|
- (void) bar;
|
|
|
|
@end
|
2009-02-12 04:43:13 +08:00
|
|
|
|
2011-02-05 07:19:27 +08:00
|
|
|
@implementation Foo
|
|
|
|
- (void) bar
|
|
|
|
{
|
|
|
|
}
|
2009-02-12 04:43:13 +08:00
|
|
|
|
2011-02-05 07:19:27 +08:00
|
|
|
- (void) foo
|
|
|
|
{
|
|
|
|
SEL a,b,c;
|
|
|
|
a = @selector(b1ar); // expected-warning {{unimplemented selector 'b1ar'}}
|
|
|
|
b = @selector(bar);
|
|
|
|
}
|
2009-02-12 04:43:13 +08:00
|
|
|
@end
|
|
|
|
|
2009-08-23 05:13:55 +08:00
|
|
|
@interface I
|
2011-02-05 07:19:27 +08:00
|
|
|
- length;
|
2009-08-23 05:13:55 +08:00
|
|
|
@end
|
|
|
|
|
2011-02-05 07:19:27 +08:00
|
|
|
SEL func()
|
2009-08-23 05:13:55 +08:00
|
|
|
{
|
2011-02-05 07:19:27 +08:00
|
|
|
return @selector(length); // expected-warning {{unimplemented selector 'length'}}
|
2007-10-17 04:40:23 +08:00
|
|
|
}
|