test_assert_is_identifier_fail.cxx 771 B

12345678910111213141516171819202122232425262728293031323334
  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_identifier.hpp>
  6. #include <boost/detail/lightweight_test.hpp>
  7. int main()
  8. {
  9. #if BOOST_PP_VARIADICS
  10. #if BOOST_VMD_ASSERT_DATA
  11. #define BOOST_VMD_REGISTER_zzz (zzz)
  12. #define BOOST_VMD_DETECT_zzz_zzz
  13. #define BOOST_VMD_REGISTER_somevalue (somevalue)
  14. #define BOOST_VMD_DETECT_somevalue_somevalue
  15. BOOST_VMD_ASSERT_IS_IDENTIFIER(zzz,somevalue)
  16. #else
  17. typedef char BOOST_VMD_IS_IDENTIFIER_ERROR[-1];
  18. #endif
  19. #endif
  20. return boost::report_errors();
  21. }