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