libs-base/Testing/test06.m

24 lines
343 B
Mathematica
Raw Normal View History

#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);
}