/Src/Dependencies/Boost/libs/function/test/function_test_fail1.cpp

http://hadesmem.googlecode.com/ · C++ · 28 lines · 14 code · 8 blank · 6 comment · 2 complexity · df22e4b2032f6d6823eaf98f92a0e567 MD5 · raw file

  1. // Boost.Function library
  2. // Copyright (C) Douglas Gregor 2001-2005. Use, modification and
  3. // distribution is subject to the Boost Software License, Version
  4. // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. // For more information, see http://www.boost.org
  7. #include <boost/test/minimal.hpp>
  8. #include <boost/function.hpp>
  9. using namespace std;
  10. using namespace boost;
  11. int
  12. test_main(int, char*[])
  13. {
  14. function0<int> f1;
  15. function0<int> f2;
  16. if (f1 == f2) {
  17. }
  18. BOOST_ERROR("This should not have compiled.");
  19. return 0;
  20. }