shithub: scc

ref: b44a95b8fbe1a524074dfcb96ee5efb89c9a1c9a
dir: /tests/execute/0090-fptr.c/

View raw version

struct S
{
	int	(*fptr)();
};

int
foo()
{
	return 0;
}

int
main()
{
	struct S v;
	
	v.fptr = foo;
	return v.fptr();
}