test_assert_is_empty_fail3.cxx 631 B

123456789101112131415161718192021222324252627282930
  1. // (C) Copyright Edward Diener 2011-2015
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. #include <boost/vmd/assert_is_empty.hpp>
  6. #include <boost/preprocessor/facilities/empty.hpp>
  7. #include <boost/detail/lightweight_test.hpp>
  8. int main()
  9. {
  10. #if BOOST_PP_VARIADICS
  11. #if BOOST_VMD_ASSERT_DATA
  12. BOOST_VMD_ASSERT_IS_EMPTY(x BOOST_PP_EMPTY())
  13. #else
  14. typedef char BOOST_VMD_IS_EMPTY_ERROR[-1];
  15. #endif
  16. #endif /* BOOST_PP_VARIADICS */
  17. return boost::report_errors();
  18. }