diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-03-19 08:51:38 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-03-19 08:51:38 +0100 |
commit | bbb4b35dfce5bc8a945039491902e089ae24440e (patch) | |
tree | 051aa126ee670f18a4a275115af8e21aa1e1362c /test/dynalloc.cpp | |
parent | 290205dfc049abc5a92c1191740b30fa91130ade (diff) |
test the new stack allocation mechanism
Diffstat (limited to 'test/dynalloc.cpp')
-rw-r--r-- | test/dynalloc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/dynalloc.cpp b/test/dynalloc.cpp index 0b1d6c867..929e603bc 100644 --- a/test/dynalloc.cpp +++ b/test/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(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); } } |