[K/N][Tests] Migrate objcSmoke & objcTests tests
^KT-61259
This commit is contained in:
committed by
Space Team
parent
58f7dd1c83
commit
524f0d335e
@@ -0,0 +1,14 @@
|
||||
#import "allocNoRetain.h"
|
||||
|
||||
@implementation TestAllocNoRetain
|
||||
-(instancetype)init {
|
||||
__weak id weakSelf = self;
|
||||
self = [TestAllocNoRetain alloc];
|
||||
if (self = [super init]) {
|
||||
// Ensure that original self value was deallocated:
|
||||
self.ok = (weakSelf == nil);
|
||||
// So it's RC was 1, which means there wasn't redundant retain applied to it.
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user