From: David Wells Date: Fri, 15 Dec 2017 22:27:59 +0000 (-0500) Subject: Add a test for VectorMemory>. X-Git-Tag: v9.0.0-rc1~655^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5630%2Fhead;p=dealii.git Add a test for VectorMemory>. --- diff --git a/tests/lac/vector_memory_std_vector.cc b/tests/lac/vector_memory_std_vector.cc new file mode 100644 index 0000000000..cf6e956fab --- /dev/null +++ b/tests/lac/vector_memory_std_vector.cc @@ -0,0 +1,30 @@ +#include +#include + +#include + +#include "../tests.h" + +// Check that we can create VectorMemory objects with vector-like classes in +// the standard library. + +template +void test_std_vector_pointer() +{ + GrowingVectorMemory mem; + + std::vector::Pointer> va; + va.push_back(typename VectorMemory::Pointer(mem)); + va.emplace_back(mem); +} + + + +int main() +{ + initlog(); + PrimitiveVectorMemory> primitive_memory; + test_std_vector_pointer>(); + + deallog << "OK" << std::endl; +} diff --git a/tests/lac/vector_memory_std_vector.output b/tests/lac/vector_memory_std_vector.output new file mode 100644 index 0000000000..0fd8fc12f0 --- /dev/null +++ b/tests/lac/vector_memory_std_vector.output @@ -0,0 +1,2 @@ + +DEAL::OK