Test C++ local static variables.