mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3089 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b7b51a9f70
commit
a13312ac35
1 changed files with 12 additions and 4 deletions
|
@ -30,6 +30,7 @@
|
|||
#include <Foundation/NSArray.h>
|
||||
#include <Foundation/NSAutoreleasePool.h>
|
||||
#endif
|
||||
#include <Foundation/NSDebug.h>
|
||||
|
||||
#define GNU_ARCHIVING \
|
||||
(TRY_GNU_ARCHIVING && defined(GNUSTEP_BASE_MAJOR_VERSION))
|
||||
|
@ -289,17 +290,24 @@ test_self_fref ()
|
|||
int
|
||||
main ()
|
||||
{
|
||||
id arp = [NSAutoreleasePool new];
|
||||
id arp;
|
||||
|
||||
arp = [NSAutoreleasePool new];
|
||||
[NSAutoreleasePool enableDoubleReleaseCheck:YES];
|
||||
GSDebugAllocationActive(YES);
|
||||
|
||||
#if TEXTCSTREAM
|
||||
[Archiver setDefaultCStreamClass: [TextCStream class]];
|
||||
#endif
|
||||
|
||||
[arp release];
|
||||
arp = [NSAutoreleasePool new];
|
||||
printf ("Decoded SubFoo label's should be 100 more than Encoded.\n");
|
||||
test_fref ();
|
||||
test_self_fref ();
|
||||
|
||||
[arp release];
|
||||
|
||||
arp = [NSAutoreleasePool new];
|
||||
test_self_fref ();
|
||||
[arp release];
|
||||
printf("Object allocation info -\n%s\n", GSDebugAllocationList(0));
|
||||
exit (0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue