2
0
mirror of https://github.com/boostorg/phoenix.git synced 2026-02-18 14:22:09 +00:00
Files
phoenix/test/statement/bug5715.cpp
2014-01-30 22:42:13 +00:00

24 lines
357 B
C++

// Check for Bug5715
#include <boost/phoenix/statement/sequence.hpp>
#include <boost/phoenix/bind.hpp>
#include <boost/detail/lightweight_test.hpp>
namespace test
{
int x = 0;
void f() { ++x; }
void g() { --x; }
}
int main()
{
(
boost::phoenix::bind(test::f),
boost::phoenix::bind(test::g)
)();
BOOST_TEST(test::x == 0);
}