You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
227 B

  1. #include "../Eigen/Core"
  2. using namespace Eigen;
  3. void call_ref(Ref<MatrixXf,0,OuterStride<> > a) {}
  4. int main()
  5. {
  6. MatrixXf A(10,10);
  7. #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
  8. call_ref(A.transpose());
  9. #else
  10. call_ref(A);
  11. #endif
  12. }