shithub: scc

ref: 4a695da3a6e31f002608accb745d4369fe7f0eaa
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();
}