Update of /cvsroot/boost/boost/libs/smart_ptr/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11112
Modified Files:
Jamfile Jamfile.v2
Added Files:
shared_ptr_compare_fail.cpp
Log Message:
A negative test for p > q added.
--- NEW FILE: shared_ptr_compare_fail.cpp ---
#include <boost/config.hpp>
#if defined(BOOST_MSVC)
#pragma warning(disable: 4786) // identifier truncated in debug info
#pragma warning(disable: 4710) // function not inlined
#pragma warning(disable: 4711) // function selected for automatic inline
expansion
#pragma warning(disable: 4514) // unreferenced inline removed
#endif
//
// shared_ptr_compare_fail.cpp - a negative test for "p > q"
//
// Copyright 2006 Peter Dimov
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/shared_ptr.hpp>
int main()
{
boost::shared_ptr<int> p, q;
p > q; // must fail
return 0;
}
Index: Jamfile
===================================================================
RCS file: /cvsroot/boost/boost/libs/smart_ptr/test/Jamfile,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- Jamfile 15 Jan 2006 13:55:37 -0000 1.12
+++ Jamfile 11 Jul 2006 23:17:17 -0000 1.13
@@ -1,6 +1,6 @@
# Boost.SmartPtr Library test Jamfile
#
-# Copyright (c) 2003-2005 Peter Dimov
+# Copyright (c) 2003-2006 Peter Dimov
# Copyright (c) 2003 Dave Abrahams
#
# Permission to copy, use, modify, sell and distribute this software
@@ -25,11 +25,11 @@
[ run shared_from_this_test.cpp : : :
<gcc><*><cxxflags>-Wno-non-virtual-dtor ]
[ run get_deleter_test.cpp ]
[ run intrusive_ptr_test.cpp ]
- [ run intrusive_ptr_test.cpp ]
[ run atomic_count_test.cpp ]
[ run lw_mutex_test.cpp ]
[ compile-fail shared_ptr_assign_fail.cpp ]
[ compile-fail shared_ptr_delete_fail.cpp ]
+ [ compile-fail shared_ptr_compare_fail.cpp ]
[ run shared_ptr_alloc2_test.cpp ]
[ run pointer_cast_test.cpp ]
[ compile pointer_to_other_test.cpp ]
Index: Jamfile.v2
===================================================================
RCS file: /cvsroot/boost/boost/libs/smart_ptr/test/Jamfile.v2,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Jamfile.v2 15 Jan 2006 13:55:37 -0000 1.8
+++ Jamfile.v2 11 Jul 2006 23:17:17 -0000 1.9
@@ -24,6 +24,7 @@
[ run lw_mutex_test.cpp ]
[ compile-fail shared_ptr_assign_fail.cpp ]
[ compile-fail shared_ptr_delete_fail.cpp ]
+ [ compile-fail shared_ptr_compare_fail.cpp ]
[ run shared_ptr_alloc2_test.cpp ]
[ run pointer_cast_test.cpp ]
[ compile pointer_to_other_test.cpp ]
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs