]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/test/test/usage-variants-ts/shared-library-custom-main-test.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / test / test / usage-variants-ts / shared-library-custom-main-test.cpp
1 // (C) Copyright Gennadiy Rozental 2001-2015.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
5
6 // See http://www.boost.org/libs/test for the library home page.
7 //
8 // File : $RCSfile$
9 //
10 // Version : $Revision$
11 //
12 // Description : shared library usage variant with custom main test
13 // ***************************************************************************
14
15 // Boost.Test
16 #define BOOST_TEST_MODULE shared library test
17 #define BOOST_TEST_NO_MAIN
18 #include <boost/test/unit_test.hpp>
19
20 BOOST_AUTO_TEST_CASE( test )
21 {
22 int i = 1;
23 BOOST_CHECK( i*i == 1 );
24 }
25
26 //____________________________________________________________________________//
27
28 int main(int argc, char* argv[])
29 {
30 return boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
31 }
32
33 //____________________________________________________________________________//
34
35 // EOF