aboutsummaryrefslogtreecommitdiffhomepage
path: root/failtest/partialpivlu_int.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'failtest/partialpivlu_int.cpp')
-rw-r--r--failtest/partialpivlu_int.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/failtest/partialpivlu_int.cpp b/failtest/partialpivlu_int.cpp
new file mode 100644
index 000000000..98ef282ea
--- /dev/null
+++ b/failtest/partialpivlu_int.cpp
@@ -0,0 +1,14 @@
+#include "../Eigen/LU"
+
+#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
+#define SCALAR int
+#else
+#define SCALAR float
+#endif
+
+using namespace Eigen;
+
+int main()
+{
+ PartialPivLU<Matrix<SCALAR,Dynamic,Dynamic> > lu(Matrix<SCALAR,Dynamic,Dynamic>::Random(10,10));
+}