1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
extern "C" double sin (double); typedef double UnaryFunType (double); class A { public: int hash (); double lookup (UnaryFunType p1) { int a = hash (); if (p1) return 0; } }; A b; void math_sin_impl () { b.lookup (sin); }