mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-09 07:40:58 +00:00
18 lines
623 B
Objective-C
18 lines
623 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#import "ObjectTesting.h"
|
|
int main()
|
|
{
|
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
|
|
|
test_alloc_only(@"NSKeyedArchiver");
|
|
test_NSObject(@"NSKeyedArchiver", [NSArray arrayWithObject:
|
|
AUTORELEASE([[NSKeyedArchiver alloc] initForWritingWithMutableData:
|
|
[NSMutableData data]])]);
|
|
test_alloc_only(@"NSKeyedUnarchiver");
|
|
test_NSObject(@"NSKeyedUnarchiver", [NSArray arrayWithObject:
|
|
AUTORELEASE([[NSKeyedUnarchiver alloc] initForReadingWithData:
|
|
[NSKeyedArchiver archivedDataWithRootObject: [NSData data]]])]);
|
|
|
|
[arp release]; arp = nil;
|
|
return 0;
|
|
}
|