testing c++ code inside extern c code