Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / libs / eigen / failtest / const_qualified_diagonal_method_retval.cpp
blob809594aabc315f95d0e1117ca0038fd8f916d7ca
1 #include "../Eigen/Core"
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 foo(CV_QUALIFIER Matrix3d &m){
12 Diagonal<Matrix3d> b(m.diagonal());
15 int main() {}