Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / libs / eigen / failtest / sparse_ref_5.cpp
blob4478f6f2f1eca88a4ed3b992e0f681ecb944f30d
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 SparseMatrixBase<SparseMatrix<float> > &ac(a);
11 #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
12 call_ref(ac);
13 #else
14 call_ref(ac.derived());
15 #endif