aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/geo_quaternion.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-10-31 09:23:41 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-10-31 09:23:41 -0400
commit9df2f5c9237579bf1221b784ae87ed789237fb1c (patch)
tree46146f41524b4db59cfd48c0f45e18028162ef9b /test/geo_quaternion.cpp
parent0609dbeec67df8f681afb34263c1be826831f534 (diff)
bug #369 - Quaternion alignment is broken
The problem was two-fold: * missing aligned operator new * Flags were mis-computed, the Aligned constant was misused
Diffstat (limited to 'test/geo_quaternion.cpp')
-rw-r--r--test/geo_quaternion.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/geo_quaternion.cpp b/test/geo_quaternion.cpp
index e03245654..1e7b2cba0 100644
--- a/test/geo_quaternion.cpp
+++ b/test/geo_quaternion.cpp
@@ -120,6 +120,10 @@ template<typename Scalar, int Options> void quaternion(void)
VERIFY_IS_APPROX(q1f.template cast<Scalar>(),q1);
Quaternion<double> q1d = q1.template cast<double>();
VERIFY_IS_APPROX(q1d.template cast<Scalar>(),q1);
+
+ // test bug 369 - improper alignment.
+ Quaternionx *q = new Quaternionx;
+ delete q;
}
template<typename Scalar> void mapQuaternion(void){
@@ -191,7 +195,6 @@ template<typename PlainObjectType> void check_const_correctness(const PlainObjec
VERIFY( !(Map<ConstPlainObjectType, Aligned>::Flags & LvalueBit) );
}
-
void test_geo_quaternion()
{
for(int i = 0; i < g_repeat; i++) {