3 #import <Foundation/Foundation.h>
5 @interface Sub : NSObject { } @end
7 +allocWithZone:(NSZone *)zone {
8 testprintf("in +[Sub alloc]\n");
9 return [super allocWithZone:zone];
12 testprintf("in -[Sub dealloc]\n");
19 NSAutoreleasePool *pool = [NSAutoreleasePool new];
20 [[Sub new] autorelease];