]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/phoenix/test/scope/lambda_tests10.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / phoenix / test / scope / lambda_tests10.cpp
1 /*=============================================================================
2 Copyright (c) 2001-2007 Joel de Guzman
3 Copyright (c) 2014 John Fletcher
4 Copyright (c) 2018 Kohei Takahashi
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 #include <boost/config.hpp>
10 #include <boost/detail/workaround.hpp>
11
12 #include <boost/detail/lightweight_test.hpp>
13 #include <boost/phoenix/core.hpp>
14 #include <boost/phoenix/operator/self.hpp>
15 #include <boost/phoenix/scope/lambda.hpp>
16
17 struct zzz {};
18
19 int main()
20 {
21 #if defined(RUNNING_ON_APPVEYOR) && BOOST_WORKAROUND(BOOST_MSVC, == 1800)
22 // skip test
23 #else
24 using boost::phoenix::lambda;
25 using boost::phoenix::arg_names::_1;
26 using boost::phoenix::local_names::_a;
27
28 int x = 1;
29 char const* y = "hello";
30 zzz z;
31 BOOST_TEST(lambda(_a = _1)[lambda[_a]](x)(y)(z) == x);
32
33 return boost::report_errors();
34 #endif
35 }