Fariborz Jahanian | cad910d | 2010-07-23 20:32:57 +0000 | [diff] [blame] | 1 | typedef struct objc_selector *SEL; |
| 2 | |
| 3 | @interface Foo |
| 4 | - (void) NotOK; |
| 5 | @end |
| 6 | |
| 7 | @implementation Foo |
| 8 | - (void) foo |
| 9 | { |
| 10 | SEL a = @selector(b1ar); |
| 11 | a = @selector(b1ar); |
| 12 | a = @selector(bar); |
| 13 | a = @selector(ok); // expected-warning {{unimplemented selector 'ok'}} |
| 14 | a = @selector(ok); |
| 15 | a = @selector(NotOK); // expected-warning {{unimplemented selector 'NotOK'}} |
| 16 | a = @selector(NotOK); |
| 17 | |
| 18 | a = @selector(clNotOk); // expected-warning {{unimplemented selector 'clNotOk'}} |
| 19 | |
| 20 | a = @selector (cl1); |
| 21 | a = @selector (cl2); |
| 22 | a = @selector (instNotOk); // expected-warning {{unimplemented selector 'instNotOk'}} |
| 23 | } |
| 24 | @end |