Files
swift-mirror/test/PrintAsObjC/Inputs/arc-conventions.m

16 lines
464 B
Objective-C

@import Foundation;
#import "swift.h"
int main(void) {
@autoreleasepool {
Test *test = [[Test alloc] init];
id result = [test initAllTheThings]; // CHECK: method called
NSCAssert(result != nil, @"failed to get a return value back");
result = [test initAllTheThings]; // CHECK: method called
NSCAssert(result != nil, @"failed to get a return value back");
#if !__has_feature(objc_arc)
[test release];
#endif
} // CHECK: deinitialized
}