c++ test code