summaryrefslogtreecommitdiffstats
path: root/googletest/test
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2018-06-04 14:45:56 (GMT)
committerGennadiy Civil <misterg@google.com>2018-06-04 14:45:56 (GMT)
commitf66ab00704cd47e4e63ef6d425ca14b9192aaebb (patch)
tree4f9b894af382f02a8483ba595095e10e89a841b0 /googletest/test
parentdb5f9ec567daff3beba53fd0bcd98e3f3562404c (diff)
downloadgoogletest-f66ab00704cd47e4e63ef6d425ca14b9192aaebb.zip
googletest-f66ab00704cd47e4e63ef6d425ca14b9192aaebb.tar.gz
googletest-f66ab00704cd47e4e63ef6d425ca14b9192aaebb.tar.bz2
Upstream, cl/199129756refs/pull/1620/head
Add printer for std::nullptr_t, addressing https://github.com/google/googletest/issues/1616
Diffstat (limited to 'googletest/test')
-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.