1 2 // Copyright 2018 Peter Dimov. 3 // 4 // Distributed under the Boost Software License, Version 1.0. 5 // 6 // See accompanying file LICENSE_1_0.txt or copy at 7 // http://www.boost.org/LICENSE_1_0.txt 8 9 // See library home page at http://www.boost.org/libs/filesystem 10 11 #include <boost/filesystem.hpp> 12 #include <boost/core/lightweight_test.hpp> 13 14 namespace fs = boost::filesystem; 15 main()16int main() 17 { 18 BOOST_TEST_THROWS( fs::copy( "/tmp/non-existent-a", "/tmp/non-existent-b" ), std::exception ); 19 return boost::report_errors(); 20 } 21