1 //  (C) Copyright Raffi Enficiaud 2018.
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 // checks that the master test suite is not copyable (compilation failure)
9 
10 #define BOOST_TEST_MODULE "master test suite non copyable"
11 #include <boost/test/included/unit_test.hpp>
12 #include <exception>
13 #include <iostream>
14 
BOOST_AUTO_TEST_CASE(check)15 BOOST_AUTO_TEST_CASE( check )
16 {
17   using namespace boost::unit_test;
18   master_test_suite_t master_copy = framework::master_test_suite();
19   std::cerr << "Test called with " << master_copy.argc << " arguments" << std::endl; // to prevent optimization, just in case it compiles...
20   throw std::runtime_error("Should not reach here ");
21 }
22