From 6093eb9ff564ded564fb48fdd01288140a9e3be6 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Sat, 5 Mar 2016 10:37:11 -0800 Subject: Don't test our 128bit emulation code when compiling with msvc --- unsupported/test/cxx11_tensor_uint128.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'unsupported/test/cxx11_tensor_uint128.cpp') 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 -#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 } -- cgit v1.2.3