mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 17:51:01 +00:00
21 lines
603 B
Mathematica
21 lines
603 B
Mathematica
|
#import "ObjectTesting.h"
|
||
|
#import <Foundation/NSAutoreleasePool.h>
|
||
|
#import <Foundation/NSPointerArray.h>
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||
|
NSPointerArray *testObj;
|
||
|
|
||
|
testObj = [[NSPointerArray new] autorelease];
|
||
|
[testObj addPointer: @"hello"];
|
||
|
test_alloc(@"NSPointerArray");
|
||
|
test_NSObject(@"NSPointerArray", [NSArray arrayWithObject: testObj]);
|
||
|
test_NSCopying(@"NSPointerArray",@"NSPointerArray",
|
||
|
[NSArray arrayWithObject: testObj], NO, YES);
|
||
|
// test_NSCoding([NSArray arrayWithObject: testObj]);
|
||
|
|
||
|
[arp release]; arp = nil;
|
||
|
return 0;
|
||
|
}
|