test_is_empty_fail.cxx 688 B

1234567891011121314151617181920212223242526272829303132
  1. // (C) Copyright Edward Diener 2011-2015,2019
  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/is_empty.hpp>
  6. #include <boost/preprocessor/variadic/has_opt.hpp>
  7. #include <boost/detail/lightweight_test.hpp>
  8. int main()
  9. {
  10. #if BOOST_PP_VARIADICS
  11. #if !BOOST_VMD_MSVC && !BOOST_PP_VARIADIC_HAS_OPT()
  12. #define FUNC_GEN(x,y) anything
  13. BOOST_TEST(!BOOST_VMD_IS_EMPTY(FUNC_GEN));
  14. #else
  15. typedef char BOOST_VMD_IS_EMPTY_ERROR[-1];
  16. #endif
  17. #endif /* BOOST_PP_VARIADICS */
  18. return boost::report_errors();
  19. }