aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sizeof.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/sizeof.cpp')
-rw-r--r--test/sizeof.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/sizeof.cpp b/test/sizeof.cpp
index df280a136..8dc9ca7ef 100644
--- a/test/sizeof.cpp
+++ b/test/sizeof.cpp
@@ -43,4 +43,7 @@ void test_sizeof()
CALL_SUBTEST( verifySizeOf(MatrixXi(8, 12)) );
CALL_SUBTEST( verifySizeOf(MatrixXcd(20, 20)) );
CALL_SUBTEST( verifySizeOf(Matrix<float, 100, 100>()) );
+
+ VERIFY(sizeof(std::complex<float>) == 2*sizeof(float));
+ VERIFY(sizeof(std::complex<double>) == 2*sizeof(double));
}