From b74c0a44131969c6cbc38c339da1114864594f6a Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 24 Jan 2013 11:42:04 +0100 Subject: [PATCH] Check that NeedsToAlign is properly sets before checking alignment --- test/dynalloc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/dynalloc.cpp b/test/dynalloc.cpp index c7ccbffef..8bbda1c94 100644 --- a/test/dynalloc.cpp +++ b/test/dynalloc.cpp @@ -82,6 +82,7 @@ class MyClassA template void check_dynaligned() { T* obj = new T; + VERIFY(T::NeedsToAlign==1); VERIFY(size_t(obj)%ALIGNMENT==0); delete obj; }