summaryrefslogtreecommitdiffhomepage
path: root/eigen/failtest/ternary_1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'eigen/failtest/ternary_1.cpp')
-rw-r--r--eigen/failtest/ternary_1.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/eigen/failtest/ternary_1.cpp b/eigen/failtest/ternary_1.cpp
new file mode 100644
index 0000000..b40bcb0
--- /dev/null
+++ b/eigen/failtest/ternary_1.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;
+#else
+ b = argc>1 ? 2*a : VectorXf(-a);
+#endif
+}