mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
16 lines
464 B
Objective-C
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
|
|
}
|