test_doc_empty_fail7.cxx 696 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 FMACRO6(param1,param2) ( any_number_of_tuple_elements )
  13. BOOST_TEST(!BOOST_VMD_IS_EMPTY(FMACRO6));
  14. #else
  15. typedef char BOOST_VMD_GENERATE_ERROR[-1];
  16. #endif
  17. #endif
  18. return boost::report_errors();
  19. }