#import <Foundation/Foundation.h>
#import <stdlib.h>

static BOOL itsGoTime = NO;

@interface MyThread : NSThread
@end

@implementation MyThread
- (void)main
{
  NSAutoreleasePool *pool;

  pool = [NSAutoreleasePool new];

  itsGoTime = YES;

  [NSProcessInfo class];

  [pool release];
}
@end

int
main (int argc, char **argv)
{
  NSAutoreleasePool *pool;
  MyThread *thread;

  pool = [NSAutoreleasePool new];

  thread = [MyThread new];

  [thread start];

  while (!itsGoTime)
    ;

  [NSPort class];

  [pool release];

  return EXIT_SUCCESS;
}
