From dc36efbb8fca6f5cfce5fcd26402544f41402808 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Thu, 10 Mar 2011 10:17:17 -0500 Subject: fix bug #219: Map Flags AlignedBit was miscomputed, didn't account for EIGEN_ALIGN --- test/dontalign.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/dontalign.cpp') 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(rows); + v = VectorType::MapAligned(array, rows); + internal::aligned_delete(array, rows); } void test_dontalign() -- cgit v1.2.3