| commit | 723a59ac26d28e42ad07221dc30b75ea8049ce1f | [log] [tgz] |
|---|---|---|
| author | Gael Guennebaud <g.gael@free.fr> | Fri Jun 09 12:54:40 2017 +0200 |
| committer | Gael Guennebaud <g.gael@free.fr> | Fri Jun 09 12:54:40 2017 +0200 |
| tree | c209114e3049f9c03f005c95aa88530cfa3b4027 | |
| parent | 8640093af1f66dd6c390420ee6919f7ba0c89e0c [diff] |
add regression test for aliasing in product rewritting
diff --git a/test/product.h b/test/product.h index 3b65112..0425a92 100644 --- a/test/product.h +++ b/test/product.h
@@ -216,6 +216,8 @@ // CwiseBinaryOp VERIFY_IS_APPROX(x = y + A*x, A*z); x = z; + VERIFY_IS_APPROX(x = y - A*x, A*(-z)); + x = z; // CwiseUnaryOp VERIFY_IS_APPROX(x = Scalar(1.)*(A*x), A*z); }