From db8e88c9361ea8fc01ca3306743d8b17ad1da473 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 16 Jul 2013 17:35:08 +0200 Subject: Fix testing issues with x87 extra precision. --- test/geo_alignedbox.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/geo_alignedbox.cpp') diff --git a/test/geo_alignedbox.cpp b/test/geo_alignedbox.cpp index e9fbfddf1..8e36adbe3 100644 --- a/test/geo_alignedbox.cpp +++ b/test/geo_alignedbox.cpp @@ -15,6 +15,10 @@ #include using namespace std; +template EIGEN_DONT_INLINE +void kill_extra_precision(T& x) { eigen_assert(&x != 0); } + + template void alignedbox(const BoxType& _box) { /* this test covers the following files: @@ -36,6 +40,10 @@ template void alignedbox(const BoxType& _box) BoxType b0(dim); BoxType b1(VectorType::Random(dim),VectorType::Random(dim)); BoxType b2; + + kill_extra_precision(b1); + kill_extra_precision(p0); + kill_extra_precision(p1); b0.extend(p0); b0.extend(p1); -- cgit v1.2.3