mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15020 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2ef9a81d01
commit
79ebe2f782
2 changed files with 11 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
#include <Foundation/Foundation.h>
|
||||
#include <gnustep/base/GCObject.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
|
@ -37,6 +38,14 @@ int main ()
|
|||
NSString *s;
|
||||
NSArray *a = [NSArray arrayWithObjects: @"a", @"b", nil];
|
||||
|
||||
o = [GCMutableArray new];
|
||||
x = [GCMutableArray new];
|
||||
[o addObject: x];
|
||||
[x addObject: o];
|
||||
[o release];
|
||||
[x release];
|
||||
[GCObject gcCollectGarbage];
|
||||
|
||||
o = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
@"test", @"one",
|
||||
[NSNumber numberWithBool: YES], @"two",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue