aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/dontalign.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-03-10 10:17:17 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-03-10 10:17:17 -0500
commitdc36efbb8fca6f5cfce5fcd26402544f41402808 (patch)
treedca98e7cdc9e4ee8ba97ea930d0eb60c221d2e4e /test/dontalign.cpp
parent9a47fb289bfa025c33db4f5773876a8792c00f47 (diff)
fix bug #219: Map Flags AlignedBit was miscomputed, didn't account for EIGEN_ALIGN
Diffstat (limited to 'test/dontalign.cpp')
-rw-r--r--test/dontalign.cpp5
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()