forwardDefaultStret.m 445 B

123456789101112131415161718192021222324
  1. /*
  2. no arc, rdar://11368528 confused by Foundation
  3. TEST_CONFIG MEM=mrc
  4. TEST_CRASHES
  5. TEST_RUN_OUTPUT
  6. objc\[\d+\]: \+\[NSObject fakeorama\]: unrecognized selector sent to instance 0x[0-9a-fA-F]+ \(no message forward handler is installed\)
  7. objc\[\d+\]: HALTED
  8. END
  9. */
  10. #include "test.h"
  11. #include <objc/NSObject.h>
  12. @interface NSObject (Fake)
  13. -(struct stret)fakeorama;
  14. @end
  15. int main()
  16. {
  17. [NSObject fakeorama];
  18. fail("should have crashed");
  19. }