InvalidResultDefCtorTest.cpp 672 B

123456789101112131415161718192021222324252627282930
  1. //////////////////////////////////////////////////////////////////////////////
  2. // Copyright 2005-2006 Andreas Huber Doenni
  3. // Distributed under the Boost Software License, Version 1.0. (See accompany-
  4. // ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. //////////////////////////////////////////////////////////////////////////////
  6. #include <boost/statechart/result.hpp>
  7. #include <boost/static_assert.hpp>
  8. namespace sc = boost::statechart;
  9. int main()
  10. {
  11. // sc::result has no default ctor
  12. sc::result r;
  13. #ifdef NDEBUG
  14. // Test only fails in DEBUG mode. Forcing failure...
  15. BOOST_STATIC_ASSERT( false );
  16. #endif
  17. return 0;
  18. }