aboutsummaryrefslogtreecommitdiff
path: root/failtest/ternary_2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'failtest/ternary_2.cpp')
-rw-r--r--failtest/ternary_2.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/failtest/ternary_2.cpp b/failtest/ternary_2.cpp
new file mode 100644
index 000000000..a46b12b2b
--- /dev/null
+++ b/failtest/ternary_2.cpp
@@ -0,0 +1,13 @@
+#include "../Eigen/Core"
+
+using namespace Eigen;
+
+int main(int argc,char **)
+{
+ VectorXf a(10), b(10);
+#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
+ b = argc>1 ? 2*a : a+a;
+#else
+ b = argc>1 ? VectorXf(2*a) : VectorXf(a+a);
+#endif
+}