| 66 | } |
| 67 | |
| 68 | template<typename VectorType> void zeroSizedVector() |
| 69 | { |
| 70 | VectorType t1; |
| 71 | |
| 72 | if (VectorType::SizeAtCompileTime == Dynamic || VectorType::SizeAtCompileTime==0) |
| 73 | { |
| 74 | zeroReduction(t1); |
| 75 | VERIFY(t1.size() == 0); |
| 76 | VectorType t2(DenseIndex(0)); // DenseIndex disambiguates with 0-the-null-pointer (error with gcc 4.4 and MSVC8) |
| 77 | VERIFY(t2.size() == 0); |
| 78 | zeroReduction(t2); |
| 79 | |
| 80 | VERIFY(t1==t2); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | void test_zerosized() |
| 85 | { |
nothing calls this directly
no test coverage detected