ARCBase.m 620 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // ARCBase.m
  3. // TestARCLayouts
  4. //
  5. // Created by Patrick Beard on 3/8/11.
  6. // Copyright 2011 __MyCompanyName__. All rights reserved.
  7. //
  8. #import "ARCBase.h"
  9. // ARCMisalign->misalign1 and ARCBase->misalign2 together cause
  10. // ARCBase's instanceStart to be misaligned, which exercises handling
  11. // of storage that is not represented in the class's ivar layout bitmaps.
  12. @implementation ARCMisalign
  13. @end
  14. @interface ARCBase () {
  15. @private
  16. char misalign2;
  17. long number;
  18. id object;
  19. void *pointer;
  20. __weak id delegate;
  21. }
  22. @end
  23. @implementation ARCBase
  24. @synthesize number, object, pointer, delegate;
  25. @end