failtest: a new cmake-based test suite for testing stuff that should fail to build. This first batch imports some const correctness checks from bug #54.

This commit is contained in:
Benoit Jacob
2011-02-05 18:57:29 -05:00
parent 8aee724274
commit 9b13e9aece
9 changed files with 149 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
#include "../Eigen/Core"
#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
#define CV_QUALIFIER const
#else
#define CV_QUALIFIER
#endif
using namespace Eigen;
void foo(CV_QUALIFIER Matrix3d &m){
Diagonal<Matrix3d> d(m);
}
int main() {}