diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-03-15 09:53:23 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-03-15 09:53:23 +0100 |
commit | 23594861297252f69d71e02160ed2b8a6ddc954b (patch) | |
tree | 17301e2e0fcdebce1bc7fc9b99bc3eb46e6b5e6d /test/dynalloc.cpp | |
parent | dd2e4be7414c34f74154ecb419ce8514bc79e22a (diff) |
disable testing of aligned members when aligned static allocation is not enabled (e.g., for gcc 3.4)
Diffstat (limited to 'test/dynalloc.cpp')
-rw-r--r-- | test/dynalloc.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/dynalloc.cpp b/test/dynalloc.cpp index cd0062aac..0b1d6c867 100644 --- a/test/dynalloc.cpp +++ b/test/dynalloc.cpp @@ -120,11 +120,12 @@ void test_dynalloc() } // check static allocation, who knows ? + #if EIGEN_ALIGN_STATICALLY { MyStruct foo0; VERIFY(size_t(foo0.avec.data())%ALIGNMENT==0); MyClassA fooA; VERIFY(size_t(fooA.avec.data())%ALIGNMENT==0); } - + // dynamic allocation, single object for (int i=0; i<g_repeat*100; ++i) { @@ -143,5 +144,6 @@ void test_dynalloc() delete[] foo0; delete[] fooA; } + #endif } |