shithub: scc

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