added test of auto functionality in C++