mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 10:11:03 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@198 72102866-910b-0410-8b05-ffd578937521
23 lines
348 B
Objective-C
23 lines
348 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:[[[NSObject alloc] init] autorelease]];
|
|
}
|
|
|
|
[array makeObjectsPerform:@selector(name)];
|
|
|
|
[[array objectAtIndex:0] hash];
|
|
[array release];
|
|
printf("no errors\n");
|
|
exit(0);
|
|
}
|