]> git.saurik.com Git - apple/objc4.git/blob - test/unload2.m
objc4-493.9.tar.gz
[apple/objc4.git] / test / unload2.m
1 #include "unload.h"
2 #include <objc/runtime.h>
3
4
5 @implementation SmallClass
6 +(void)initialize { }
7 +(id)new {
8 return class_createInstance(self, 0);
9 }
10 -(void)free { object_dispose(self); }
11 -(void)unload2_instance_method { }
12 -(void)finalize { }
13 @end
14
15
16 @implementation BigClass
17 +(void)initialize { }
18 +(id)new {
19 return class_createInstance(self, 0);
20 }
21 -(void)free { object_dispose(self); }
22 -(void)finalize { }
23 -(void)forward:(int)a1:(int)a2 { a1 = a2; }
24 @end
25
26
27 @interface UnusedClass { id isa; } @end
28 @implementation UnusedClass @end
29
30
31 @implementation SmallClass (Category)
32 -(void)unload2_category_method { }
33 @end