Memory allocated on the stack is freed at the function exit, so reduce iteration count to avoid stack overflow

(grafted from e51da9c3a8
)
This commit is contained in:
Gael Guennebaud 2014-08-04 12:46:00 +02:00
parent 8d69b87c53
commit 8e875d3c38

View File

@ -53,7 +53,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);