From 9292ae9273935bae0385594e46ab9ea00421238d Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 15 Nov 2005 11:40:12 +0000 Subject: [PATCH] Changed test results to match class declarations. [SVN r31663] --- test/has_virtual_destructor_test.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/has_virtual_destructor_test.cpp b/test/has_virtual_destructor_test.cpp index e92b9ec..5f607b3 100755 --- a/test/has_virtual_destructor_test.cpp +++ b/test/has_virtual_destructor_test.cpp @@ -15,6 +15,12 @@ #include #include +class polymorphic_no_virtual_destructor +{ +public: + virtual void method() = 0; +}; + TT_TEST_BEGIN(has_virtual_destructor) BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, false); @@ -38,8 +44,9 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, false); BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, true, false); BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, true, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, false); +BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, true); +BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, false); #ifndef BOOST_NO_STD_LOCALE BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::has_virtual_destructor::value, true, false); BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::has_virtual_destructor >::value, true, false);