libs-base/Testing/basic.m
Adam Fedor 55baf1cb47 tryLock and lockBeforeDate: just return NO on recursive locks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/freeze-1_0_0@9536 72102866-910b-0410-8b05-ffd578937521
2001-04-09 02:48:44 +00:00

26 lines
564 B
Objective-C

#include <Foundation/Foundation.h>
#include <stdio.h>
#if 1
int main ()
{
id pool = [NSAutoreleasePool new];
id o = [NSObject new];
printf ("Hello from object at 0x%x\n", (unsigned)[o self]);
exit (0);
}
#else
int main (int argc, char **argv)
{
NSString *string;
id pool = [NSAutoreleasePool new];
NSProcessInfo *info = [NSProcessInfo processInfo];
NSUserDefaults *defaults;
[info setProcessName: @"TestProcess"];
defaults = [NSUserDefaults standardUserDefaults];
NSLog(@"%@", [defaults dictionaryRepresentation]);
return 0;
}
#endif