mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-28 11:10:51 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@90 72102866-910b-0410-8b05-ffd578937521
23 lines
349 B
Objective-C
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);
|
|
}
|