mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-27 18:50:47 +00:00
24 lines
343 B
Mathematica
24 lines
343 B
Mathematica
|
|
||
|
#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 freeObjects] free];
|
||
|
printf("no errors\n");
|
||
|
exit(0);
|
||
|
}
|