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