aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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
}