mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
14 lines
454 B
Mathematica
14 lines
454 B
Mathematica
|
#import "ObjectTesting.h"
|
||
|
#import <Foundation/NSAutoreleasePool.h>
|
||
|
#import <Foundation/NSObject.h>
|
||
|
int main()
|
||
|
{
|
||
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||
|
test_alloc(@"NSObject");
|
||
|
test_NSObject(@"NSObject", [NSArray arrayWithObject:[[NSObject new] autorelease]]);
|
||
|
PASS([[[NSObject new] autorelease] methodSignatureForSelector: 0] == nil,
|
||
|
"a null selector proiduces a nil method signature");
|
||
|
[arp release]; arp = nil;
|
||
|
return 0;
|
||
|
}
|