9219.cpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Boost 9219.cpp --------------------------------------------------------------------//
  2. // Copyright Beman Dawes 2014
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // See http://www.boost.org/LICENSE_1_0.txt
  5. // Library home page: http://www.boost.org/libs/filesystem
  6. //--------------------------------------------------------------------------------------//
  7. // //
  8. // In researching filesystem issues it is convenient to have a program that can be //
  9. // quickly modified to test reported problems. That's the purpose of this file and //
  10. // its associated Visual Studio and Boost.Build infrastructure. //
  11. // //
  12. //--------------------------------------------------------------------------------------//
  13. #include <boost/config/warning_disable.hpp>
  14. #include <boost/filesystem.hpp>
  15. #include <iostream>
  16. #include <boost/detail/lightweight_test.hpp>
  17. #include <boost/detail/lightweight_main.hpp>
  18. using std::cout;
  19. using std::endl;
  20. namespace fs = boost::filesystem;
  21. //------------------------------------ cpp_main --------------------------------------//
  22. int cpp_main(int argc, char* argv[])
  23. {
  24. cout << "Hello, 9219" << endl;
  25. cout << "This is a test for non-Windows systems" << endl;
  26. BOOST_TEST(fs::exists(const_cast<char*>(".")));
  27. return ::boost::report_errors();
  28. } // cpp_main