This is config.nested.c in view mode; [Download] [Up]
/* Used by `configure' to test GCC nested functions */
int main()
{
int a = 2;
void nested(int b)
{
a += b;
}
void doit(void(*f)(int))
{
(*f)(4);
}
doit(nested);
if (a != 6)
exit(-1);
exit(0);
}
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.