]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/spirit/classic/test/grammar_multi_instance_tst.cpp
1 /*=============================================================================
2 Copyright (c) 2004 Joel de Guzman
3 http://spirit.sourceforge.net/
5 Use, modification and distribution is subject to the Boost Software
6 License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 http://www.boost.org/LICENSE_1_0.txt)
8 =============================================================================*/
10 #include <boost/detail/lightweight_test.hpp>
11 #include <boost/spirit/include/classic_core.hpp>
13 using namespace BOOST_SPIRIT_CLASSIC_NS
;
18 struct g
: public grammar
<g
>
20 template <typename ScannerT
>
23 definition(g
const& /*self*/)
29 rule
<ScannerT
> const& start() const { return r
; }
46 BOOST_TEST(g_count
== 3);
48 return boost::report_errors();