some test code for c++