| 75 | } |
| 76 | |
| 77 | template<typename VectorType> void zeroSizedVector() |
| 78 | { |
| 79 | VectorType t1; |
| 80 | |
| 81 | if (VectorType::SizeAtCompileTime == Dynamic || VectorType::SizeAtCompileTime==0) |
| 82 | { |
| 83 | zeroReduction(t1); |
| 84 | VERIFY(t1.size() == 0); |
| 85 | VectorType t2(DenseIndex(0)); // DenseIndex disambiguates with 0-the-null-pointer (error with gcc 4.4 and MSVC8) |
| 86 | VERIFY(t2.size() == 0); |
| 87 | zeroReduction(t2); |
| 88 | |
| 89 | VERIFY(t1==t2); |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | EIGEN_DECLARE_TEST(zerosized) |
| 94 | { |
nothing calls this directly
no test coverage detected