method_pool.h 419 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* For use with the method_pool.m test */
  2. /* Whitespace below is significant */
  3. @interface TestMethodPool1
  4. + alloc;
  5. - (double)instMethod:(int)foo;
  6. @end
  7. @interface TestMethodPool2
  8. - (char)instMethod:(int)foo;
  9. @end
  10. @implementation TestMethodPool1
  11. + alloc { return 0; }
  12. - (double)instMethod:(int)foo {
  13. return foo;
  14. }
  15. @end
  16. @implementation TestMethodPool2
  17. - (char)instMethod:(int)foo {
  18. return foo;
  19. }
  20. @end