]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/spirit/test/qi/not_predicate.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / spirit / test / qi / not_predicate.cpp
1 /*=============================================================================
2 Copyright (c) 2001-2010 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/spirit/include/qi_operator.hpp>
9 #include <boost/spirit/include/qi_numeric.hpp>
10
11 #include <iostream>
12 #include "test.hpp"
13
14 int
15 main()
16 {
17 using spirit_test::test;
18 using boost::spirit::qi::int_;
19
20 {
21 BOOST_TEST((!test("1234", !int_)));
22 BOOST_TEST((test("abcd", !int_, false)));
23 BOOST_TEST((!test("abcd", !!int_, false)));
24 }
25
26 return boost::report_errors();
27 }