diff options
Diffstat (limited to 'test/dontalign.cpp')
-rw-r--r-- | test/dontalign.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/dontalign.cpp b/test/dontalign.cpp index 6ef2761bf..57ed4736b 100644 --- a/test/dontalign.cpp +++ b/test/dontalign.cpp @@ -53,6 +53,11 @@ void dontalign(const MatrixType& m) v = square * v; v = a.adjoint() * v; VERIFY(square.determinant() != Scalar(0)); + + // bug 219: MapAligned() was giving an assert with EIGEN_DONT_ALIGN, because Map Flags were miscomputed + Scalar* array = internal::aligned_new<Scalar>(rows); + v = VectorType::MapAligned(array, rows); + internal::aligned_delete(array, rows); } void test_dontalign() |