blob: 801d39f6efd1a0d23ea3e424779aef5530ea52a4 [file] [log] [blame]
Googler45874d82019-08-21 12:06:47 -07001#include "../Eigen/Core"
2
3using namespace Eigen;
4
Rasmus Munk Larsen2434cfd2023-12-06 12:02:41 -08005int main(int argc, char **) {
Googler45874d82019-08-21 12:06:47 -07006 VectorXf a(10), b(10);
7#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
Rasmus Munk Larsen2434cfd2023-12-06 12:02:41 -08008 b = argc > 1 ? 2 * a : a + a;
Googler45874d82019-08-21 12:06:47 -07009#else
Rasmus Munk Larsen2434cfd2023-12-06 12:02:41 -080010 b = argc > 1 ? VectorXf(2 * a) : VectorXf(a + a);
Googler45874d82019-08-21 12:06:47 -070011#endif
12}