add has_pointer_test.cpp