Boost logo

Boost-Commit :

From: nesotto_at_[hidden]
Date: 2008-02-07 09:46:20


Author: nesotto
Date: 2008-02-07 09:46:19 EST (Thu, 07 Feb 2008)
New Revision: 43156
URL: http://svn.boost.org/trac/boost/changeset/43156

Log:
test
Text files modified:
   trunk/libs/range/test/partial_workaround.cpp | 8 +++++++-
   1 files changed, 7 insertions(+), 1 deletions(-)

Modified: trunk/libs/range/test/partial_workaround.cpp
==============================================================================
--- trunk/libs/range/test/partial_workaround.cpp (original)
+++ trunk/libs/range/test/partial_workaround.cpp 2008-02-07 09:46:19 EST (Thu, 07 Feb 2008)
@@ -10,6 +10,8 @@
 
 #include <boost/config.hpp>
 #include <boost/detail/workaround.hpp>
+#include <boost/range/detail/implementation_help.hpp>
+#include <boost/test/test_tools.hpp>
 
 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
 # pragma warn -8091 // supress warning in Boost.Test
@@ -30,7 +32,6 @@
 
 #include <boost/static_assert.hpp>
 #include <boost/type_traits.hpp>
-#include <boost/test/test_tools.hpp>
 #include <iostream>
 #include <vector>
 
@@ -91,6 +92,11 @@
 
 void check_partial_workaround()
 {
+ //
+ // test if warnings are generated
+ //
+ std::size_t s = boost::range_detail::array_size( "foo" );
+ BOOST_CHECK_EQUAL( s, 4u );
 }
 
 #endif


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