Check that NeedsToAlign is properly sets before checking alignment
diff --git a/test/dynalloc.cpp b/test/dynalloc.cpp
index c7ccbff..8bbda1c 100644
--- a/test/dynalloc.cpp
+++ b/test/dynalloc.cpp
@@ -82,6 +82,7 @@
 template<typename T> void check_dynaligned()
 {
   T* obj = new T;
+  VERIFY(T::NeedsToAlign==1);
   VERIFY(size_t(obj)%ALIGNMENT==0);
   delete obj;
 }