lexical_cast_to_pointer_test.cpp 669 B

1234567891011121314151617181920212223
  1. // // Unit test for boost::lexical_cast.
  2. //
  3. // See http://www.boost.org for most recent version, including documentation.
  4. //
  5. // Copyright Antony Polukhin, 2013-2019.
  6. //
  7. // Distributed under the Boost
  8. // Software License, Version 1.0. (See accompanying file
  9. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt).
  10. #include <boost/lexical_cast.hpp>
  11. #include <boost/type.hpp>
  12. #define BOOST_INCLUDE_MAIN
  13. #include <boost/test/test_tools.hpp>
  14. int test_main(int, char*[])
  15. {
  16. boost::lexical_cast<char*>("Hello");
  17. BOOST_CHECK(false); // suppressing warning about 'boost::unit_test::{anonymous}::unit_test_log' defined but not used
  18. return 0;
  19. }