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