aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/zerosized.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2016-02-19 22:59:28 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2016-02-19 22:59:28 +0100
commit2af04f1a5764f083f86dda019d3fac5af12754f4 (patch)
tree232d5f34757f315eca84b5a04b93fef67432c996 /test/zerosized.cpp
parent6fa35bbd280733aac7b8198201050b37f958bd9c (diff)
Extend unit test to stress smart_copy with empty input/output.
Diffstat (limited to 'test/zerosized.cpp')
-rw-r--r--test/zerosized.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/zerosized.cpp b/test/zerosized.cpp
index 2404fdc2b..477ff0070 100644
--- a/test/zerosized.cpp
+++ b/test/zerosized.cpp
@@ -38,7 +38,7 @@ template<typename MatrixType> void zeroSizedMatrix()
if (MatrixType::RowsAtCompileTime == Dynamic && MatrixType::ColsAtCompileTime == Dynamic)
{
- MatrixType t2(0, 0);
+ MatrixType t2(0, 0), t3(t1);
VERIFY(t2.rows() == 0);
VERIFY(t2.cols() == 0);