mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1 72102866-910b-0410-8b05-ffd578937521
17 lines
241 B
C
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);
|
|
}
|