23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
+
+
+
+
+
+
+
+
+
|
@end
@implementation RuntimeARCTest
- (instancetype)init
{
self = [super init];
#if defined(OF_WINDOWS) && defined(OF_X86_64)
/*
* Clang has a bug on Windows where it creates an invalid call into
* objc_retainAutoreleasedReturnValue(). Work around it by not using an
* autoreleased exception.
*/
@throw [[OFException alloc] init];
#else
@throw [OFException exception];
#endif
return self;
}
@end
@implementation TestsAppDelegate (RuntimeARCTests)
- (void)runtimeARCTests
|