1 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
4 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
5 // Use, modification and distribution is subject to the Boost Software
6 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 // should pass compilation and execution
11 #include <cstddef> // NULL
14 #include <boost/config.hpp>
15 #include <cstdio> // remove
16 #if defined(BOOST_NO_STDC_NAMESPACE)
22 #include <boost/archive/archive_exception.hpp>
23 #include "test_tools.hpp"
28 #include <boost/serialization/list.hpp>
30 const char * testfile = boost::archive::tmpnam(NULL);
31 BOOST_REQUIRE(NULL != testfile);
37 test_ostream os(testfile, TEST_STREAM_FLAGS);
38 test_oarchive oa(os, TEST_ARCHIVE_FLAGS);
39 oa << boost::serialization::make_nvp("alist",alist);
44 test_istream is(testfile, TEST_STREAM_FLAGS);
45 test_iarchive ia(is, TEST_ARCHIVE_FLAGS);
46 ia >> boost::serialization::make_nvp("alist",alist1);
48 BOOST_CHECK(alist == alist1);
49 std::remove(testfile);
52 int test_main( int /* argc */, char* /* argv */[] )