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