]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/filesystem/test/issues/70-71-copy.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / filesystem / test / issues / 70-71-copy.cpp
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
16 int main()
17 {
18 BOOST_TEST_THROWS( fs::copy( "/tmp/non-existent-a", "/tmp/non-existent-b" ), std::exception );
19 return boost::report_errors();
20 }