aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/product_large.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/product_large.cpp')
-rw-r--r--test/product_large.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/product_large.cpp b/test/product_large.cpp
index 77ae7b587..9b53e7b89 100644
--- a/test/product_large.cpp
+++ b/test/product_large.cpp
@@ -42,4 +42,10 @@ void test_product_large()
m = (v+v).asDiagonal() * m;
VERIFY_IS_APPROX(m, MatrixXf::Constant(N,3,2));
}
+
+ {
+ // test deferred resizing in Matrix::operator=
+ MatrixXf a = MatrixXf::Random(10,4), b = MatrixXf::Random(4,10), c = a;
+ VERIFY_IS_APPROX((a = a * b), (c * b).eval());
+ }
}