From dd45c4805ced4ad8ead743875f42259e9b6a2795 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 20 May 2009 15:41:23 +0200 Subject: * add a writable generic coeff wise expression (CwiseUnaryView) * add writable .real() and .imag() functions --- test/sizeof.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/sizeof.cpp') diff --git a/test/sizeof.cpp b/test/sizeof.cpp index 6c0485ae1..c713afade 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()) ); + + VERIFY(sizeof(std::complex) == 2*sizeof(float)); + VERIFY(sizeof(std::complex) == 2*sizeof(double)); } -- cgit v1.2.3