We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec5c0bc commit be6483dCopy full SHA for be6483d
Test/Test.m
@@ -6,7 +6,31 @@
6
#include <assert.h>
7
#include "Test.h"
8
9
-@implementation NSConstantString @end
+@implementation NSConstantString
10
+- (void)dealloc
11
+{
12
+ // Silence a warning
13
+ if (0)
14
+ {
15
+ [super dealloc];
16
+ }
17
+}
18
+@end
19
+
20
+@interface NSTinyString : NSConstantString @end
21
+@implementation NSTinyString
22
++ (void)load
23
24
+ if (sizeof(void*) > 4)
25
26
+ objc_registerSmallObjectClass_np(self, 4);
27
28
29
+- (Class)class { return [NSTinyString class]; }
30
+- (id)retain { return self; }
31
+- (id)autorelease { return self; }
32
+- (void)release {}
33
34
35
@implementation Test
36
+ (Class)class { return self; }
0 commit comments