Remove pin/unpin from HostAllocator
[alexxy/gromacs.git] / src / gromacs / utility / tests / alignedallocator-impl.h
index aa77d1f29d4da33e4e7d2cbfe28f0af74236d83e..8a49e0172de2c8f4c53db9e3b6d91a5396585fcd 100644 (file)
@@ -123,6 +123,16 @@ TYPED_TEST(AllocatorTest, VectorAllocatesAndReservesWithAlignment) //NOLINT(misc
     }
 }
 
+TYPED_TEST(AllocatorTest, Move) //NOLINT(misc-definitions-in-headers)
+{
+    using value_type = typename TypeParam::value_type;
+    std::vector<value_type, TypeParam> v1(1);
+    value_type* data = v1.data();
+    EXPECT_NE(data, nullptr);
+    std::vector<value_type, TypeParam> v2(std::move(v1));
+    EXPECT_EQ(data, v2.data());
+}
+
 }  // namespace test
 }  // namespace gmx