ivarSlide.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. @interface Super : TestRoot {
  2. @public
  3. #if OLD
  4. // nothing
  5. #else
  6. char superIvar;
  7. #endif
  8. }
  9. @end
  10. @interface ShrinkingSuper : TestRoot {
  11. @public
  12. #if OLD
  13. id superIvar[5];
  14. __weak id superIvar2[5];
  15. #else
  16. // nothing
  17. #endif
  18. }
  19. @end;
  20. @interface MoreStrongSuper : TestRoot {
  21. @public
  22. #if OLD
  23. void *superIvar;
  24. #else
  25. id superIvar;
  26. #endif
  27. }
  28. @end;
  29. @interface MoreWeakSuper : TestRoot {
  30. @public
  31. #if OLD
  32. id superIvar;
  33. #else
  34. __weak id superIvar;
  35. #endif
  36. }
  37. @end;
  38. @interface MoreWeak2Super : TestRoot {
  39. @public
  40. #if OLD
  41. void *superIvar;
  42. #else
  43. __weak id superIvar;
  44. #endif
  45. }
  46. @end;
  47. @interface LessStrongSuper : TestRoot {
  48. @public
  49. #if OLD
  50. id superIvar;
  51. #else
  52. void *superIvar;
  53. #endif
  54. }
  55. @end;
  56. @interface LessWeakSuper : TestRoot {
  57. @public
  58. #if OLD
  59. __weak id superIvar;
  60. #else
  61. id superIvar;
  62. #endif
  63. }
  64. @end;
  65. @interface LessWeak2Super : TestRoot {
  66. @public
  67. #if OLD
  68. __weak id superIvar;
  69. #else
  70. void *superIvar;
  71. #endif
  72. }
  73. @end;
  74. @interface NoGCChangeSuper : TestRoot {
  75. @public
  76. intptr_t d;
  77. char superc1;
  78. #if OLD
  79. // nothing
  80. #else
  81. char superc2;
  82. #endif
  83. }
  84. @end
  85. @interface RunsOf15 : TestRoot {
  86. @public
  87. id scan1;
  88. intptr_t skip15[15];
  89. id scan15[15];
  90. intptr_t skip15_2[15];
  91. id scan15_2[15];
  92. #if OLD
  93. // nothing
  94. #else
  95. intptr_t skip1;
  96. #endif
  97. }
  98. @end