diff options
Diffstat (limited to 'test/dynalloc.cpp')
-rw-r--r-- | test/dynalloc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/dynalloc.cpp b/test/dynalloc.cpp index c7ccbffef..7e41bfa97 100644 --- a/test/dynalloc.cpp +++ b/test/dynalloc.cpp @@ -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); @@ -82,6 +82,7 @@ class MyClassA template<typename T> void check_dynaligned() { T* obj = new T; + VERIFY(T::NeedsToAlign==1); VERIFY(size_t(obj)%ALIGNMENT==0); delete obj; } |