libs-base/Testing/test06.m
mccallum 24310fc684 Use release' and dealloc' instead of `free'.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@90 72102866-910b-0410-8b05-ffd578937521
1995-03-12 19:33:56 +00:00

23 lines
349 B
Objective-C

#include <objects/objects.h>
#define N 20
int main()
{
int i;
Array* array = [[Array alloc] init];
for (i = 0; i < N; i++)
{
[array addObject:[[Object alloc] init]];
}
[array makeObjectsPerform:@selector(name)];
[[array objectAtIndex:0] hash];
[[array releaseObjects] release];
printf("no errors\n");
exit(0);
}