diff --git a/googletest/include/gtest/internal/gtest-internal.h b/googletest/include/gtest/internal/gtest-internal.h index 7901cd3b..da3ebd2b 100644 --- a/googletest/include/gtest/internal/gtest-internal.h +++ b/googletest/include/gtest/internal/gtest-internal.h @@ -1199,7 +1199,6 @@ public: const std::string& get() const { return value; } private: - AdditionalMessage& operator=(AdditionalMessage&&); std::string value; }; diff --git a/googletest/test/gtest_unittest.cc b/googletest/test/gtest_unittest.cc index 2c970830..de194491 100644 --- a/googletest/test/gtest_unittest.cc +++ b/googletest/test/gtest_unittest.cc @@ -3748,19 +3748,6 @@ TEST(ExpectTest, ASSERT_EQ_0) { " 0\n 5.6"); } -TEST(AssertionTest, AdditionalMessage) { - ::testing::internal::AdditionalMessage m = "servus"; - EXPECT_EQ(m.get(), "servus"); - - const char* cc = "hello"; - m = cc; - EXPECT_EQ(m.get(), cc); - - std::string s = "hi"; - m = s; - EXPECT_EQ(m.get(), s); -} - // Tests ASSERT_NE. TEST(AssertionTest, ASSERT_NE) { ASSERT_NE(6, 7);