aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2011-03-21 21:59:42 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2011-03-21 21:59:42 +0100
commit5fda8cdfb36a56288c54bd2f87bf596cb06b506a (patch)
treec2f8758f707fa2bc724bdf6084412e8d8d591757 /test
parenteb9c6b6cfda6276088ab64cd3de72972a4ca1880 (diff)
fix 228 (ei_aligned_stack_delete does not exist anymore)
Diffstat (limited to 'test')
-rw-r--r--test/eigen2/eigen2_dynalloc.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/eigen2/eigen2_dynalloc.cpp b/test/eigen2/eigen2_dynalloc.cpp
index 1902b7c94..6a32ebb73 100644
--- a/test/eigen2/eigen2_dynalloc.cpp
+++ b/test/eigen2/eigen2_dynalloc.cpp
@@ -70,11 +70,10 @@ void check_aligned_stack_alloc()
{
for(int i = 1; i < 1000; i++)
{
- float *p = ei_aligned_stack_new(float,i);
+ ei_declare_aligned_stack_constructed_variable(float, p, i, 0);
VERIFY(std::size_t(p)%ALIGNMENT==0);
// if the buffer is wrongly allocated this will give a bad write --> check with valgrind
for(int j = 0; j < i; j++) p[j]=0;
- ei_aligned_stack_delete(float,p,i);
}
}