bug5824.cpp 736 B

12345678910111213141516171819202122232425
  1. /*=============================================================================
  2. Copyright (c) 2005-2007 Dan Marsden
  3. Copyright (c) 2005-2007 Joel de Guzman
  4. Copyright (c) 2014 John Fletcher
  5. Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. ==============================================================================*/
  8. // Check for Bug5824
  9. #include <boost/phoenix/core.hpp>
  10. #include <boost/phoenix/operator.hpp>
  11. #include <boost/core/lightweight_test.hpp>
  12. using namespace boost::phoenix::arg_names;
  13. int main()
  14. {
  15. int a = 0;
  16. (++arg1, ++arg1)(a);
  17. BOOST_TEST(a == 2);
  18. return boost::report_errors();
  19. }