rawisa.m 709 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. TEST_CFLAGS -Xlinker -sectcreate -Xlinker __DATA -Xlinker __objc_rawisa -Xlinker /dev/null
  3. TEST_ENV OBJC_PRINT_RAW_ISA=YES
  4. TEST_RUN_OUTPUT
  5. objc\[\d+\]: RAW ISA: disabling non-pointer isa because the app has a __DATA,__objc_rawisa section
  6. (.* RAW ISA: .*\n)*
  7. OK: rawisa.m(\n.* RAW ISA: .*)*
  8. OR
  9. (.* RAW ISA: .*\n)*
  10. no __DATA,__rawisa support
  11. OK: rawisa.m(\n.* RAW ISA: .*)*
  12. END
  13. "RAW ISA" is allowed after "OK" because of static destructors
  14. that provoke class realization.
  15. */
  16. #include "test.h"
  17. int main()
  18. {
  19. fprintf(stderr, "\n");
  20. #if ! (SUPPORT_NONPOINTER_ISA && TARGET_OS_OSX)
  21. // only 64-bit Mac supports this
  22. fprintf(stderr, "no __DATA,__rawisa support\n");
  23. #endif
  24. succeed(__FILE__);
  25. }