commit | b74c0a44131969c6cbc38c339da1114864594f6a | [log] [tgz] |
---|---|---|
author | Gael Guennebaud <g.gael@free.fr> | Thu Jan 24 11:42:04 2013 +0100 |
committer | Gael Guennebaud <g.gael@free.fr> | Thu Jan 24 11:42:04 2013 +0100 |
tree | 5196c0f9a338d7589f5a842365060a86baae069a | |
parent | 7282a45a0aacf6ba08062d12a7111feeff2484df [diff] [blame] |
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; }