shithub: scc

ref: db5082d4c59b6350e7ab271dd751c40fddc68eb9
dir: /tests/execute/0092-fptr.c/

View raw version

int
zero()
{
	return 0;
}

struct S
{
	int (*zerofunc)();
} s = { &zero };

struct S *
anon()
{
	return &s;
}

typedef struct S * (*fty)();

fty
go()
{
	return &anon;
}

int
main()
{
	return go()()->zerofunc();
}