summaryrefslogtreecommitdiffstats
path: root/googletest/test/gtest-printers_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'googletest/test/gtest-printers_test.cc')
-rw-r--r--googletest/test/gtest-printers_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/googletest/test/gtest-printers_test.cc b/googletest/test/gtest-printers_test.cc
index a373851..49b3bd4 100644
--- a/googletest/test/gtest-printers_test.cc
+++ b/googletest/test/gtest-printers_test.cc
@@ -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.