libs-base/config/config.nested.c
Andrew McCallum 0098375b73 Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1 72102866-910b-0410-8b05-ffd578937521
1994-11-04 16:29:24 +00:00

17 lines
241 B
C

/* 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);
}