Index: base/memory/scoped_ptr_unittest.cc |
diff --git a/base/memory/scoped_ptr_unittest.cc b/base/memory/scoped_ptr_unittest.cc |
index ad49f4ff5cc43c3fcc969b736feebe4ec9cdcc11..fe4f187d0106e1627d7aba65c9f1e72ea3f314c9 100644 |
--- a/base/memory/scoped_ptr_unittest.cc |
+++ b/base/memory/scoped_ptr_unittest.cc |
@@ -5,6 +5,7 @@ |
#include "base/memory/scoped_ptr.h" |
#include <sstream> |
+#include <utility> |
#include "base/basictypes.h" |
#include "base/bind.h" |
@@ -872,3 +873,14 @@ TEST(ScopedPtrTest, ArrayOperators) { |
EXPECT_TRUE(pnull <= nullptr); |
EXPECT_TRUE(nullptr <= pnull); |
} |
+ |
+namespace { |
+scoped_ptr<int> Thinger() { |
+ scoped_ptr<int> r(new int); |
+ return std::move(r); |
+} |
+} |
+ |
+TEST(ScopedPtrTest, MooMoo) { |
+ Thinger(); |
+} |