diff options
author | drgler <daniel.kruegler@gmail.com> | 2017-08-10 19:18:32 (GMT) |
---|---|---|
committer | drgler <daniel.kruegler@gmail.com> | 2017-08-22 18:18:54 (GMT) |
commit | 6404d45a92528cb0a8f8294d4c0b057c23138de5 (patch) | |
tree | 3bd2b0f0333f03b6534477fe80706c245407aa2b /googletest | |
parent | 07bba78a5fc91f7ea8e4321fff743846167fa95f (diff) | |
parent | 2606c7a670fd974dcf4b5725b7b9b2c18cb49bdc (diff) | |
download | googletest-6404d45a92528cb0a8f8294d4c0b057c23138de5.zip googletest-6404d45a92528cb0a8f8294d4c0b057c23138de5.tar.gz googletest-6404d45a92528cb0a8f8294d4c0b057c23138de5.tar.bz2 |
Merge branch 'master' of github.com:Dani-Hub/googletest
Diffstat (limited to 'googletest')
-rw-r--r-- | googletest/test/gtest-printers_test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/googletest/test/gtest-printers_test.cc b/googletest/test/gtest-printers_test.cc index 545c1ba..4f001b5 100644 --- a/googletest/test/gtest-printers_test.cc +++ b/googletest/test/gtest-printers_test.cc @@ -202,7 +202,7 @@ class PathLike { iterator end() const { return iterator(); } friend - ::std::ostream& operator<<(::std::ostream& os, const PathLike& p) + ::std::ostream& operator<<(::std::ostream& os, const PathLike&) { return os << "Streamable-PathLike"; } @@ -1187,6 +1187,8 @@ TEST(PrintStreamableTypeTest, TemplateTypeInUserNamespace) { TEST(PrintStreamableTypeTest, PathLikeInUserNamespace) { ::foo::PathLike x; EXPECT_EQ("Streamable-PathLike", Print(x)); + const ::foo::PathLike cx; + EXPECT_EQ("Streamable-PathLike", Print(cx)); } // Tests printing user-defined types that have a PrintTo() function. |