mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Crash fixed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7562 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
816db43634
commit
76993394d5
3 changed files with 279 additions and 175 deletions
|
@ -1,9 +1,20 @@
|
|||
#include <Foundation/NSObject.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#if 0
|
||||
int main ()
|
||||
{
|
||||
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;
|
||||
|
||||
string = [NSString stringWithCString:argv[1]];
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue