no_cxx14_member_init_fail.cpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // This file was automatically generated on Sat Oct 11 19:26:17 2014
  2. // by libs/config/tools/generate.cpp
  3. // Copyright John Maddock 2002-4.
  4. // Use, modification and distribution are subject to the
  5. // Boost Software License, Version 1.0. (See accompanying file
  6. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. // See http://www.boost.org/libs/config for the most recent version.//
  8. // Revision $Id$
  9. //
  10. // Test file for macro BOOST_NO_CXX14_AGGREGATE_NSDMI
  11. // This file should not compile, if it does then
  12. // BOOST_NO_CXX14_AGGREGATE_NSDMI should not be defined.
  13. // See file boost_no_cxx14_member_init.ipp for details
  14. // Must not have BOOST_ASSERT_CONFIG set; it defeats
  15. // the objective of this file:
  16. #ifdef BOOST_ASSERT_CONFIG
  17. # undef BOOST_ASSERT_CONFIG
  18. #endif
  19. #include <boost/config.hpp>
  20. #include "test.hpp"
  21. #ifdef BOOST_NO_CXX14_AGGREGATE_NSDMI
  22. #include "boost_no_cxx14_member_init.ipp"
  23. #else
  24. #error "this file should not compile"
  25. #endif
  26. int main( int, char *[] )
  27. {
  28. return boost_no_cxx14_aggregate_nsdmi::test();
  29. }