mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 18:21:04 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1 72102866-910b-0410-8b05-ffd578937521
17 lines
363 B
Objective-C
17 lines
363 B
Objective-C
#include <objects/objects.h>
|
|
|
|
int main()
|
|
{
|
|
id a = [[Array alloc] initWithType:@encode(int)];
|
|
int i;
|
|
unsigned ret42 (arglist_t f) { return 42; }
|
|
|
|
[a addElementsCount:5,
|
|
((elt)0),((elt)1),((elt)2),((elt)3),((elt)4)];
|
|
[a printForDebugger];
|
|
i = [a indexOfElement:99
|
|
ifAbsentCall:ret42];
|
|
|
|
printf("This should be 42---> %d\n", i);
|
|
exit(0);
|
|
}
|