Remove pin/unpin from HostAllocator
[alexxy/gromacs.git] / src / gromacs / utility / tests / alignedallocator.cpp
index e188dcb8d08d661cae1e2e2a0de04b2ca3ed4700..d046a24c6b565642336d5a411a886a65301dab02 100644 (file)
@@ -84,5 +84,12 @@ TYPED_TEST(AllocatorTest, StatelessAllocatorUsesNoMemory)
               sizeof(std::vector<value_type, TypeParam>));
 }
 
+TEST(AllocatorUntypedTest, Comparison)
+{
+    //Should always be true for the same policy, indpendent of value_type
+    EXPECT_EQ(AlignedAllocator<float>{}, AlignedAllocator<double>{});
+    EXPECT_EQ(PageAlignedAllocator<float>{}, PageAlignedAllocator<double>{});
+}
+
 }  // namespace test
 }  // namespace gmx