a lcov compatible C++ program (based on gcov source)