]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/phoenix/test/statement/bug5715.cpp
1 /*=============================================================================
2 Copyright (c) 2005-2007 Dan Marsden
3 Copyright (c) 2005-2007 Joel de Guzman
4 Copyright (c) 2014 John Fletcher
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 ==============================================================================*/
12 #include <boost/phoenix/statement/sequence.hpp>
13 #include <boost/phoenix/bind.hpp>
15 #include <boost/detail/lightweight_test.hpp>
23 void f() { ++x
; ++y
; }
24 void g() { --x
; ++z
; }
30 boost::phoenix::bind(test::f
),
31 boost::phoenix::bind(test::g
)
33 BOOST_TEST(test::x
== 0);
34 BOOST_TEST(test::y
== 1);
35 BOOST_TEST(test::z
== 1);