#import "ObjectTesting.h" #import #import int main() { NSAutoreleasePool *arp = [NSAutoreleasePool new]; NSXMLParser *parser; parser = [NSXMLParser new]; test_alloc(@"NSXMLParser"); test_NSObject(@"NSXMLParser", [NSArray arrayWithObject: parser]); [arp release]; arp = nil; /* Don't release the parser ... it appears that on OSX there is a bug in * NSXMLParser such that deallocation crashes if the -self method has been * called on it (which is something the NSObject test does). [parser release]; */ return 0; }