]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/spirit/test/x3/grammar_linker.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / spirit / test / x3 / grammar_linker.cpp
1 /*=============================================================================
2 Copyright (c) 2019 Nikita Kniazev
3 Copyright (c) 2019 Joel de Guzman
4
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 =============================================================================*/
8 #include "grammar.hpp"
9 #include <boost/detail/lightweight_test.hpp>
10
11 int main()
12 {
13 char const* s = "123", * e = s + std::strlen(s);
14 #if 1
15 auto r = parse(s, e, grammar);
16 #else
17 int i = 0;
18 auto r = parse(s, e, grammar, i);
19 #endif
20
21 BOOST_TEST(r);
22 return boost::report_errors();
23 }
24