See also bug 969
| 240 | |
| 241 | // See also bug 969 |
| 242 | void test_ref_overloads() |
| 243 | { |
| 244 | MatrixXd Ad, Bd; |
| 245 | RowMatrixXd rAd, rBd; |
| 246 | VERIFY( test_ref_overload_fun1(Ad)==1 ); |
| 247 | VERIFY( test_ref_overload_fun1(rAd)==2 ); |
| 248 | |
| 249 | MatrixXf Af, Bf; |
| 250 | VERIFY( test_ref_overload_fun2(Ad)==4 ); |
| 251 | VERIFY( test_ref_overload_fun2(Ad+Bd)==4 ); |
| 252 | VERIFY( test_ref_overload_fun2(Af+Bf)==5 ); |
| 253 | |
| 254 | ArrayXd A, B; |
| 255 | test_ref_ambiguous(A, B); |
| 256 | } |
| 257 | |
| 258 | void test_ref() |
| 259 | { |
no test coverage detected