|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64674 - trunk/libs/type_traits/test
From: john_at_[hidden]
Date: 2010-08-08 04:40:58
Author: johnmaddock
Date: 2010-08-08 04:40:57 EDT (Sun, 08 Aug 2010)
New Revision: 64674
URL: http://svn.boost.org/trac/boost/changeset/64674
Log:
Commit updated test case.
Text files modified:
trunk/libs/type_traits/test/is_virtual_base_of_test.cpp | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
Modified: trunk/libs/type_traits/test/is_virtual_base_of_test.cpp
==============================================================================
--- trunk/libs/type_traits/test/is_virtual_base_of_test.cpp (original)
+++ trunk/libs/type_traits/test/is_virtual_base_of_test.cpp 2010-08-08 04:40:57 EDT (Sun, 08 Aug 2010)
@@ -24,6 +24,20 @@
virtual ~D()throw();
};
+// for bug report 4453: https://svn.boost.org/trac/boost/ticket/4453
+class non_virtual_base
+{
+public:
+ non_virtual_base();
+};
+class non_virtual_derived : public non_virtual_base
+{
+public:
+ non_virtual_derived();
+ virtual int Y();
+ virtual int X();
+};
+
TT_TEST_BEGIN(is_virtual_base_of)
BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_virtual_base_of<Derived,Base>::value), false);
@@ -60,6 +74,7 @@
BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_virtual_base_of<Base,virtual_inherit6>::value), true);
BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_virtual_base_of<virtual_inherit6,Base>::value), false);
BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_virtual_base_of<B,D>::value), false);
+BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_virtual_base_of<non_virtual_base,non_virtual_derived>::value), false);
TT_TEST_END
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk