]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/filesystem/test/issues/hello_filesystem.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / filesystem / test / issues / hello_filesystem.cpp
CommitLineData
7c673cae
FG
1// Boost hello_filesystem.cpp --------------------------------------------------------//
2
3// Copyright Beman Dawes 2014
4
5// Distributed under the Boost Software License, Version 1.0.
6// See http://www.boost.org/LICENSE_1_0.txt
7
8// Library home page: http://www.boost.org/libs/filesystem
9
10//--------------------------------------------------------------------------------------//
11// //
12// In researching filesystem issues it is convenient to have a program that can be //
13// quickly modified to test reported problems. That's the purpose of this file and //
14// its associated Visual Studio and Boost.Build infrastructure. //
15// //
16//--------------------------------------------------------------------------------------//
17
18#include <boost/config/warning_disable.hpp>
19
20#include <boost/filesystem.hpp>
21
22#include <iostream>
f67539c2 23#include <boost/core/lightweight_test.hpp>
7c673cae
FG
24#include <boost/detail/lightweight_main.hpp>
25
26using std::cout;
27using std::endl;
28namespace fs = boost::filesystem;
29
30//------------------------------------ cpp_main --------------------------------------//
31
32int cpp_main(int argc, char* argv[])
33{
1e59de90 34 cout << "Hello, filesystem world" << endl;
7c673cae 35
1e59de90 36 BOOST_TEST(fs::exists("."));
7c673cae 37
1e59de90 38 return ::boost::report_errors();
7c673cae 39} // cpp_main