Files
FastDeploy/third_party/eigen/failtest/ternary_1.cpp
Jack Zhou 355382ad63 Move eigen to third party (#282)
* remove useless statement

* Add eigen to third_party dir

* remove reducdant lines
2022-09-26 19:24:02 +08:00

13 lines
222 B
C++

#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
}