objc_methods.h 574 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* For use with the methods.m test */
  2. @interface TestPCH
  3. + alloc;
  4. - (instancetype)instMethod;
  5. @end
  6. @class TestForwardClassDecl;
  7. // FIXME: @compatibility_alias AliasForTestPCH TestPCH;
  8. // http://llvm.org/PR12689
  9. @interface PR12689
  10. @end
  11. @implementation PR12689
  12. -(void)mugi:(int)x {
  13. switch(x) {
  14. case 23: {}
  15. }
  16. }
  17. -(void)bonk:(int)x {
  18. switch(x) {
  19. case 42: {}
  20. }
  21. }
  22. @end
  23. @interface PR12689_2
  24. @end
  25. @implementation PR12689_2
  26. -(void)mugi:(int)x {
  27. switch(x) {
  28. case 23: [self bonk:x]; break;
  29. case 82: break;
  30. }
  31. }
  32. -(void)bonk:(int)x {
  33. }
  34. @end