diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-08-04 12:46:00 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-08-04 12:46:00 +0200 |
commit | e51da9c3a8b448bc06110f1a7376211dcd32cc0e (patch) | |
tree | c0dfa54fa170b0f54e88b796b8544ccf0c281563 /test/dynalloc.cpp | |
parent | 3e59163a24c5ff1a8009887cb5d5e091ae6df540 (diff) |
Memory allocated on the stack is freed at the function exit, so reduce iteration count to avoid stack overflow
Diffstat (limited to 'test/dynalloc.cpp')
-rw-r--r-- | test/dynalloc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dynalloc.cpp b/test/dynalloc.cpp index 4f53ea6f0..1190eb9cd 100644 --- a/test/dynalloc.cpp +++ b/test/dynalloc.cpp @@ -55,7 +55,7 @@ void check_aligned_new() void check_aligned_stack_alloc() { - for(int i = 1; i < 1000; i++) + for(int i = 1; i < 400; i++) { ei_declare_aligned_stack_constructed_variable(float,p,i,0); VERIFY(size_t(p)%ALIGNMENT==0); |