mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
18 lines
241 B
C
18 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);
|
||
|
}
|