aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/cxx11_tensor_uint128.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-03-05 10:37:11 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-03-05 10:37:11 -0800
commit6093eb9ff564ded564fb48fdd01288140a9e3be6 (patch)
treee821341f9004eb6ed2976f0261f477f3e54e7aac /unsupported/test/cxx11_tensor_uint128.cpp
parent57b263c5b9da8699386ce2c046c14f12e6c59533 (diff)
Don't test our 128bit emulation code when compiling with msvc
Diffstat (limited to 'unsupported/test/cxx11_tensor_uint128.cpp')
-rw-r--r--unsupported/test/cxx11_tensor_uint128.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/unsupported/test/cxx11_tensor_uint128.cpp b/unsupported/test/cxx11_tensor_uint128.cpp
index c6766c6c6..e8ecc5bca 100644
--- a/unsupported/test/cxx11_tensor_uint128.cpp
+++ b/unsupported/test/cxx11_tensor_uint128.cpp
@@ -11,11 +11,7 @@
#include <Eigen/CXX11/Tensor>
-#if EIGEN_COMP_MSVC
-typedef __uint128 uint128_t;
-#else
typedef __uint128_t uint128_t;
-#endif
using Eigen::internal::TensorUInt128;
@@ -142,10 +138,15 @@ void test_misc2() {
void test_cxx11_tensor_uint128()
{
+#if EIGEN_COMP_MSVC
+ // Skip the test on compilers that don't support 128bit integers natively
+ return;
+#else
CALL_SUBTEST_1(test_add());
CALL_SUBTEST_2(test_sub());
CALL_SUBTEST_3(test_mul());
CALL_SUBTEST_4(test_div());
CALL_SUBTEST_5(test_misc1());
CALL_SUBTEST_6(test_misc2());
+#endif
}