[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,21 @@
|
||||
#import "detachObjCObject.h"
|
||||
|
||||
@implementation DeallocFlagHolder
|
||||
@end
|
||||
|
||||
@implementation ObjectWithDeallocFlag
|
||||
- (instancetype)init {
|
||||
if (self = [super init]) {
|
||||
self.deallocFlagHolder = [DeallocFlagHolder new];
|
||||
self.deallocFlagHolder.deallocated = NO;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
- (void)dealloc {
|
||||
self.deallocFlagHolder.deallocated = YES;
|
||||
}
|
||||
|
||||
- (instancetype _Nonnull)sameObject; {
|
||||
return self;
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user