Test C++ example