Check that NeedsToAlign is properly sets before checking alignment
This commit is contained in:
parent
7282a45a0a
commit
b74c0a4413
@ -82,6 +82,7 @@ class MyClassA
|
|||||||
template<typename T> void check_dynaligned()
|
template<typename T> void check_dynaligned()
|
||||||
{
|
{
|
||||||
T* obj = new T;
|
T* obj = new T;
|
||||||
|
VERIFY(T::NeedsToAlign==1);
|
||||||
VERIFY(size_t(obj)%ALIGNMENT==0);
|
VERIFY(size_t(obj)%ALIGNMENT==0);
|
||||||
delete obj;
|
delete obj;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user