| Fariborz Jahanian | a533af7 | 2011-02-04 23:30:23 +0000 | [diff] [blame] | 1 | // 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 | |||||
| 26 | SEL func() | ||||
| 27 | { | ||||
| 28 | return @selector(length); // expected-warning {{unimplemented selector 'length'}} | ||||
| 29 | } | ||||