shithub: scc

ref: 2ccd8d847b565a199d28acb8015c401a9d511a6d
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();
}