]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/phoenix/test/operator/comparison_tests.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / phoenix / test / operator / comparison_tests.cpp
1 /*=============================================================================
2 Copyright (c) 2001-2007 Joel de Guzman
3
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #include <boost/detail/lightweight_test.hpp>
8 #include <boost/phoenix/core.hpp>
9 #include <boost/phoenix/operator.hpp>
10
11 namespace phoenix = boost::phoenix;
12
13 int
14 main()
15 {
16 using phoenix::val;
17
18 {
19 BOOST_TEST(!(val(123) == 456)());
20 BOOST_TEST((val(123) != 456)());
21 BOOST_TEST(!(val(123) > 456)());
22 BOOST_TEST((val(123) < 456)());
23 BOOST_TEST(!(val(123) > 456)());
24 BOOST_TEST((val(123) <= 123)());
25 BOOST_TEST((val(123) >= 123)());
26 }
27
28 return boost::report_errors();
29 }