From 512c2357c5699b3a38858bebb13751ff5282f38d Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Tue, 15 Mar 2005 08:47:30 +0000 Subject: [PATCH] Remove nonconformant compiler test disablement [SVN r27660] --- test1/test1.cpp | 13 ------------- test1/test1.hpp | 11 ----------- test2/test2.cpp | 15 --------------- test2/test2.hpp | 13 ------------- test3/test3.cpp | 12 ------------ test3/test3.hpp | 11 ----------- test4/test4.cpp | 12 ------------ test4/test4.hpp | 11 ----------- test5/test5.cpp | 12 ------------ test5/test5.hpp | 11 ----------- test6/test6.cpp | 12 ------------ test6/test6.hpp | 11 ----------- test7/test7.cpp | 13 ------------- test7/test7.hpp | 2 -- 14 files changed, 159 deletions(-) diff --git a/test1/test1.cpp b/test1/test1.cpp index 5f75f7c3..a1e6cd04 100644 --- a/test1/test1.cpp +++ b/test1/test1.cpp @@ -16,22 +16,9 @@ #include "test1.hpp" -#ifdef BOOST_MSVC -// Standard new handler is not standard compliant. -#include -int __cdecl std_new_handler (unsigned) { - throw std::bad_alloc (); -} -#endif - int main () { -#ifdef BOOST_MSVC - _set_new_handler (std_new_handler); -#endif test_vector (); test_matrix_vector (); test_matrix (); return 0; } - - diff --git a/test1/test1.hpp b/test1/test1.hpp index aed3b89b..c612c8ec 100644 --- a/test1/test1.hpp +++ b/test1/test1.hpp @@ -48,15 +48,4 @@ void test_matrix_vector (); void test_matrix (); -// Disable some tests for truly broken compilers - // MSVC Version 6.0 & 7.0 have problems compiling with std::complex -#if defined(BOOST_MSVC) && (BOOST_MSVC <= 1300) -#undef USE_STD_COMPLEX -#endif - - // Intel for Windows fails to link when a std::complex is returned! -#if defined(BOOST_INTEL_CXX_VERSION) && (BOOST_INTEL_CXX_VERSION <= 800) && defined(__ICL) -#undef USE_STD_COMPLEX -#endif - #endif diff --git a/test2/test2.cpp b/test2/test2.cpp index 8b64e64b..dbabc93a 100644 --- a/test2/test2.cpp +++ b/test2/test2.cpp @@ -16,21 +16,7 @@ #include "test2.hpp" -#ifdef BOOST_MSVC -// Standard new handler is not standard compliant. -#include -int __cdecl std_new_handler (unsigned) { - throw std::bad_alloc (); -} -#endif - int main () { -#ifdef BOOST_MSVC - _set_new_handler (std_new_handler); -#endif - - std::cout << "test_blas_1" << std::endl; - #ifdef USE_FLOAT std::cout << "float" << std::endl; test_blas_1, 3> () (); @@ -103,4 +89,3 @@ int main () { return 0; } - diff --git a/test2/test2.hpp b/test2/test2.hpp index f17cc4f2..57f483a2 100644 --- a/test2/test2.hpp +++ b/test2/test2.hpp @@ -91,17 +91,4 @@ struct test_blas_3 { }; -// Disable some tests for truly broken compilers - // MSVC Version 6.0 & 7.0 have problems compiling with std::complex -#if defined(BOOST_MSVC) && (BOOST_MSVC <= 1300) -#undef USE_STD_COMPLEX #endif - - // Intel for Windows fails to link when a std::complex is returned! -#if defined(BOOST_INTEL_CXX_VERSION) && (BOOST_INTEL_CXX_VERSION <= 800) && defined(__ICL) -#undef USE_STD_COMPLEX -#endif - -#endif - - diff --git a/test3/test3.cpp b/test3/test3.cpp index fd39346a..51fde6f6 100644 --- a/test3/test3.cpp +++ b/test3/test3.cpp @@ -16,21 +16,9 @@ #include "test3.hpp" -#ifdef BOOST_MSVC -// Standard new handler is not standard compliant. -#include -int __cdecl std_new_handler (unsigned) { - throw std::bad_alloc (); -} -#endif - int main () { -#ifdef BOOST_MSVC - _set_new_handler (std_new_handler); -#endif test_vector (); test_matrix_vector (); test_matrix (); return 0; } - diff --git a/test3/test3.hpp b/test3/test3.hpp index a6823ba6..f644f66d 100644 --- a/test3/test3.hpp +++ b/test3/test3.hpp @@ -53,15 +53,4 @@ void test_vector (); void test_matrix_vector (); void test_matrix (); -// Disable some tests for truly broken compilers - // MSVC Version 6.0 & 7.0 have problems compiling with std::complex -#if defined(BOOST_MSVC) && (BOOST_MSVC <= 1300) -#undef USE_STD_COMPLEX -#endif - - // Intel for Windows fails to link when a std::complex is returned! -#if defined(BOOST_INTEL_CXX_VERSION) && (BOOST_INTEL_CXX_VERSION <= 800) && defined(__ICL) -#undef USE_STD_COMPLEX -#endif - #endif diff --git a/test4/test4.cpp b/test4/test4.cpp index c1d01494..f72b3ae0 100644 --- a/test4/test4.cpp +++ b/test4/test4.cpp @@ -16,20 +16,8 @@ #include "test4.hpp" -#ifdef BOOST_MSVC -// Standard new handler is not standard compliant. -#include -int __cdecl std_new_handler (unsigned) { - throw std::bad_alloc (); -} -#endif - int main () { -#ifdef BOOST_MSVC - _set_new_handler (std_new_handler); -#endif test_matrix_vector (); test_matrix (); return 0; } - diff --git a/test4/test4.hpp b/test4/test4.hpp index fb9ec84b..705d99b1 100644 --- a/test4/test4.hpp +++ b/test4/test4.hpp @@ -58,15 +58,4 @@ void test_matrix (); // FIXME slice are failing in assignment to zero elements #undef USE_SLICE -// Disable some tests for truly broken compilers - // MSVC Version 6.0 & 7.0 have problems compiling with std::complex -#if defined(BOOST_MSVC) && (BOOST_MSVC <= 1300) -#undef USE_STD_COMPLEX -#endif - - // Intel for Windows fails to link when a std::complex is returned! -#if defined(BOOST_INTEL_CXX_VERSION) && (BOOST_INTEL_CXX_VERSION <= 800) && defined(__ICL) -#undef USE_STD_COMPLEX -#endif - #endif diff --git a/test5/test5.cpp b/test5/test5.cpp index 570bda65..3a0fdff4 100644 --- a/test5/test5.cpp +++ b/test5/test5.cpp @@ -16,20 +16,8 @@ #include "test5.hpp" -#ifdef BOOST_MSVC -// Standard new handler is not standard compliant. -#include -int __cdecl std_new_handler (unsigned) { - throw std::bad_alloc (); -} -#endif - int main () { -#ifdef BOOST_MSVC - _set_new_handler (std_new_handler); -#endif test_matrix_vector (); test_matrix (); return 0; } - diff --git a/test5/test5.hpp b/test5/test5.hpp index 5666e025..c5d35ec2 100644 --- a/test5/test5.hpp +++ b/test5/test5.hpp @@ -75,15 +75,4 @@ void test_matrix (); // FIXME slice are failing in assignment to zero elements #undef USE_SLICE -// Disable some tests for truly broken compilers - // MSVC Version 6.0 & 7.0 have problems compiling with std::complex -#if defined(BOOST_MSVC) && (BOOST_MSVC <= 1300) -#undef USE_STD_COMPLEX -#endif - - // Intel for Windows fails to link when a std::complex is returned! -#if defined(BOOST_INTEL_CXX_VERSION) && (BOOST_INTEL_CXX_VERSION <= 800) && defined(__ICL) -#undef USE_STD_COMPLEX -#endif - #endif diff --git a/test6/test6.cpp b/test6/test6.cpp index e8eabc3c..03b6930f 100644 --- a/test6/test6.cpp +++ b/test6/test6.cpp @@ -16,20 +16,8 @@ #include "test6.hpp" -#ifdef BOOST_MSVC -// Standard new handler is not standard compliant. -#include -int __cdecl std_new_handler (unsigned) { - throw std::bad_alloc (); -} -#endif - int main () { -#ifdef BOOST_MSVC - _set_new_handler (std_new_handler); -#endif test_matrix_vector (); test_matrix (); return 0; } - diff --git a/test6/test6.hpp b/test6/test6.hpp index 351753e7..b4b2ba38 100644 --- a/test6/test6.hpp +++ b/test6/test6.hpp @@ -73,15 +73,4 @@ void test_matrix_vector (); void test_matrix (); -// Disable some tests for truly broken compilers - // MSVC Version 6.0 & 7.0 have problems compiling with std::complex -#if defined(BOOST_MSVC) && (BOOST_MSVC <= 1300) -#undef USE_STD_COMPLEX -#endif - - // Intel for Windows fails to link when a std::complex is returned! -#if defined(BOOST_INTEL_CXX_VERSION) && (BOOST_INTEL_CXX_VERSION <= 800) && defined(__ICL) -#undef USE_STD_COMPLEX -#endif - #endif diff --git a/test7/test7.cpp b/test7/test7.cpp index 012272e6..365434aa 100644 --- a/test7/test7.cpp +++ b/test7/test7.cpp @@ -25,22 +25,9 @@ #include "test7.hpp" -#ifdef BOOST_MSVC -// Standard new handler is not standard compliant. -#include -int __cdecl std_new_handler (unsigned) { - throw std::bad_alloc (); -} -#endif - int main () { -#ifdef BOOST_MSVC - _set_new_handler (std_new_handler); -#endif test_vector (); test_matrix_vector (); test_matrix (); return 0; } - - diff --git a/test7/test7.hpp b/test7/test7.hpp index b81a8628..7d67fdbe 100644 --- a/test7/test7.hpp +++ b/test7/test7.hpp @@ -41,5 +41,3 @@ void test_matrix (); #endif - -