2011-02-16 08:21:17 +00:00
|
|
|
#import "ObjectTesting.h"
|
|
|
|
#import <Foundation/NSSet.h>
|
|
|
|
#import <Foundation/NSAutoreleasePool.h>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
2025-01-08 22:38:13 +00:00
|
|
|
id testObject = AUTORELEASE([NSCountedSet new]);
|
2011-02-16 08:21:17 +00:00
|
|
|
test_alloc(@"NSCountedSet");
|
|
|
|
test_NSObject(@"NSCountedSet",[NSArray arrayWithObject:testObject]);
|
|
|
|
test_NSCoding([NSArray arrayWithObject:testObject]);
|
|
|
|
test_NSCopying(@"NSCountedSet",
|
|
|
|
@"NSCountedSet",
|
|
|
|
[NSArray arrayWithObject:testObject], NO, YES);
|
|
|
|
test_NSMutableCopying(@"NSCountedSet",
|
|
|
|
@"NSCountedSet",
|
|
|
|
[NSArray arrayWithObject:testObject]);
|
|
|
|
|
|
|
|
[arp release]; arp = nil;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|