Upstream, cl/199129756

Add printer for std::nullptr_t, addressing https://github.com/google/googletest/issues/1616
This commit is contained in:
Gennadiy Civil
2018-06-04 10:45:56 -04:00
parent db5f9ec567
commit f66ab00704
2 changed files with 10 additions and 0 deletions

View File

@@ -1115,6 +1115,12 @@ TEST(PrintStdTupleTest, NestedTuple) {
#endif // GTEST_LANG_CXX11
#if GTEST_LANG_CXX11
TEST(PrintNullptrT, Basic) {
EXPECT_EQ("(nullptr)", Print(nullptr));
}
#endif // GTEST_LANG_CXX11
// Tests printing user-defined unprintable types.
// Unprintable types in the global namespace.