2011-02-16 08:21:17 +00:00
|
|
|
#import "ObjectTesting.h"
|
|
|
|
#import <Foundation/NSAutoreleasePool.h>
|
|
|
|
#import <Foundation/NSDate.h>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
2024-12-23 13:16:14 +00:00
|
|
|
id testObj = AUTORELEASE([NSDate new]);
|
2011-02-16 08:21:17 +00:00
|
|
|
|
2024-12-23 13:16:14 +00:00
|
|
|
test_NSObject(@"NSDate", [NSArray arrayWithObject: [NSDate date]]);
|
|
|
|
test_NSCoding([NSArray arrayWithObject: testObj]);
|
|
|
|
test_keyed_NSCoding([NSArray arrayWithObject: testObj]);
|
|
|
|
test_NSCopying(@"NSDate", @"NSDate",
|
|
|
|
[NSArray arrayWithObject: testObj], NO, NO);
|
2011-02-16 08:21:17 +00:00
|
|
|
|
|
|
|
[arp release]; arp = nil;
|
|
|
|
return 0;
|
|
|
|
}
|