Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / libs / eigen / failtest / sparse_ref_2.cpp
blob46c9440c2fa2e42dd953ebebbea06d5a82c3345d
1 #include "../Eigen/Sparse"
3 using namespace Eigen;
5 void call_ref(Ref<SparseMatrix<float> > a) { }
7 int main()
9 SparseMatrix<float> A(10,10);
10 #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
11 call_ref(A.row(3));
12 #else
13 call_ref(A.col(3));
14 #endif