]> git.saurik.com Git - apple/objc4.git/blob - test/ivarSlide.h
objc4-493.9.tar.gz
[apple/objc4.git] / test / ivarSlide.h
1 @interface Base {
2 @public
3 id isa;
4 }
5
6 +class;
7 +new;
8 -(void)dealloc;
9 @end
10
11 @interface Super : Base {
12 @public
13 #if OLD
14 // nothing
15 #else
16 char superIvar;
17 #endif
18 }
19 @end
20
21
22 @interface ShrinkingSuper : Base {
23 @public
24 #if OLD
25 id superIvar[5];
26 __weak id superIvar2[5];
27 #else
28 // nothing
29 #endif
30 }
31 @end;
32
33
34 @interface MoreStrongSuper : Base {
35 @public
36 #if OLD
37 void *superIvar;
38 #else
39 id superIvar;
40 #endif
41 }
42 @end;
43
44
45 @interface MoreWeakSuper : Base {
46 @public
47 #if OLD
48 id superIvar;
49 #else
50 __weak id superIvar;
51 #endif
52 }
53 @end;
54
55 @interface MoreWeak2Super : Base {
56 @public
57 #if OLD
58 void *superIvar;
59 #else
60 __weak id superIvar;
61 #endif
62 }
63 @end;
64
65 @interface LessStrongSuper : Base {
66 @public
67 #if OLD
68 id superIvar;
69 #else
70 void *superIvar;
71 #endif
72 }
73 @end;
74
75 @interface LessWeakSuper : Base {
76 @public
77 #if OLD
78 __weak id superIvar;
79 #else
80 id superIvar;
81 #endif
82 }
83 @end;
84
85 @interface LessWeak2Super : Base {
86 @public
87 #if OLD
88 __weak id superIvar;
89 #else
90 void *superIvar;
91 #endif
92 }
93 @end;
94
95 @interface NoGCChangeSuper : Base {
96 @public
97 intptr_t d;
98 char superc1;
99 #if OLD
100 // nothing
101 #else
102 char superc2;
103 #endif
104 }
105 @end
106
107 @interface RunsOf15 : Base {
108 @public
109 id scan1;
110 intptr_t skip15[15];
111 id scan15[15];
112 intptr_t skip15_2[15];
113 id scan15_2[15];
114 #if OLD
115 // nothing
116 #else
117 intptr_t skip1;
118 #endif
119 }
120 @end