mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-27 23:32:02 +08:00
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…
x
Reference in New Issue
Block a user