1 2 3 4 5 6 7 8 9 10 11
struct X { int i; }; struct Y { struct X (*fnptr)(struct X); }; extern struct Y foo; int main() { struct X x; foo.fnptr(x); return 0; }