From 0d15ad80195ec5cd33f057068e34aa7e1dc2b783 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 5 Nov 2015 14:22:30 -0800 Subject: Updated the regressions tests that cover full reductions --- unsupported/test/cxx11_tensor_map.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'unsupported/test/cxx11_tensor_map.cpp') diff --git a/unsupported/test/cxx11_tensor_map.cpp b/unsupported/test/cxx11_tensor_map.cpp index 9e79209bb..a8a095e38 100644 --- a/unsupported/test/cxx11_tensor_map.cpp +++ b/unsupported/test/cxx11_tensor_map.cpp @@ -232,8 +232,11 @@ static void test_from_tensor() static int f(const TensorMap >& tensor) { - Tensor result = tensor.sum(); - return result(0); + // Size<0> empty; + EIGEN_STATIC_ASSERT((internal::array_size>::value == 0), YOU_MADE_A_PROGRAMMING_MISTAKE); + EIGEN_STATIC_ASSERT((internal::array_size>::value == 0), YOU_MADE_A_PROGRAMMING_MISTAKE); + Tensor result = tensor.sum(); + return result(); } static void test_casting() -- cgit v1.2.3