#include <stdio.h>
extern "C" double f11(struct c* p, int i);
int main()
{
int i=9;
struct c* p = NULL;
double d = f11( p,i);
}
class c
{
public:
double f1(int i)
{
return 1.0;
}
};
extern "C" double f11(c* p, int i)
{
return p->f1(i);
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgpleHRlcm4gIkMiIGRvdWJsZSBmMTEoc3RydWN0IGMqIHAsIGludCBpKTsKCmludCBtYWluKCkKewogICBpbnQgaT05OwogICBzdHJ1Y3QgYyogcCA9IE5VTEw7CiAgIGRvdWJsZSBkID0gZjExKCBwLGkpOwp9CgpjbGFzcyBjCnsKICAgIHB1YmxpYzoKICAgICAgIGRvdWJsZSBmMShpbnQgaSkKICAgICAgIHsKICAgICAgICAgIHJldHVybiAxLjA7CiAgICAgICB9Cn07CgpleHRlcm4gIkMiICBkb3VibGUgZjExKGMqIHAsIGludCBpKQp7CiAgICByZXR1cm4gcC0+ZjEoaSk7Cn0K