summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/phoenix/test/regression/bug5824.cpp
blob: 43609904fa0a1129368c7f5ebab8b35d24076c4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*=============================================================================
    Copyright (c) 2005-2007 Dan Marsden
    Copyright (c) 2005-2007 Joel de Guzman
    Copyright (c) 2014      John Fletcher
    
    Distributed under the Boost Software License, Version 1.0. (See accompanying
    file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/

// Check for Bug5824

#include <boost/phoenix/core.hpp>
#include <boost/phoenix/operator.hpp>

#include <boost/core/lightweight_test.hpp>

using namespace boost::phoenix::arg_names;

int main()
{
  int a = 0;
  (++arg1, ++arg1)(a);
  BOOST_TEST(a == 2);
  return boost::report_errors();
}