diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-05-20 09:59:15 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-05-20 09:59:15 +0200 |
commit | 96464f8563720f09648876d7f268db6059615a19 (patch) | |
tree | dadfa146363e989b4f87c1539ba98ec1c46693a4 /test/geo_hyperplane.cpp | |
parent | 501bc602ece7b6081e431e0c1b69bcabd217ba08 (diff) |
clean several other assertion checking tests
Diffstat (limited to 'test/geo_hyperplane.cpp')
-rw-r--r-- | test/geo_hyperplane.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/geo_hyperplane.cpp b/test/geo_hyperplane.cpp index de3c6df0b..6916a1cdc 100644 --- a/test/geo_hyperplane.cpp +++ b/test/geo_hyperplane.cpp @@ -150,8 +150,9 @@ template<typename Scalar> void hyperplane_alignment() VERIFY_IS_APPROX(p1->coeffs(), p2->coeffs()); VERIFY_IS_APPROX(p1->coeffs(), p3->coeffs()); - #ifdef EIGEN_VECTORIZE - VERIFY_RAISES_ASSERT((::new(reinterpret_cast<void*>(array3u)) Plane3a)); + #if defined(EIGEN_VECTORIZE) && !defined(EIGEN_DONT_ALIGN_STATICALLY) + if(internal::packet_traits<Scalar>::Vectorizable) + VERIFY_RAISES_ASSERT((::new(reinterpret_cast<void*>(array3u)) Plane3a)); #endif } |