selector-warning.h 609 B

123456789101112131415161718192021222324
  1. typedef struct objc_selector *SEL;
  2. @interface Foo
  3. - (void) NotOK;
  4. @end
  5. @implementation Foo
  6. - (void) foo
  7. {
  8. SEL a = @selector(b1ar);
  9. a = @selector(b1ar);
  10. a = @selector(bar);
  11. a = @selector(ok); // expected-warning {{unimplemented selector 'ok'}}
  12. a = @selector(ok);
  13. a = @selector(NotOK); // expected-warning {{unimplemented selector 'NotOK'}}
  14. a = @selector(NotOK);
  15. a = @selector(clNotOk); // expected-warning {{unimplemented selector 'clNotOk'}}
  16. a = @selector (cl1);
  17. a = @selector (cl2);
  18. a = @selector (instNotOk); // expected-warning {{unimplemented selector 'instNotOk'}}
  19. }
  20. @end