]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/spirit/test/lex/regression_less_8563.cpp
1 // Copyright (c) 2013 Andreas Pokorny
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #include <boost/detail/lightweight_test.hpp>
7 #include <boost/config/warning_disable.hpp>
9 #include <boost/phoenix.hpp>
10 #include <boost/spirit/include/lex_lexertl.hpp>
15 using namespace boost::spirit
;
17 template <typename BaseLexer
>
18 struct test_lexer
: boost::spirit::lex::lexer
<BaseLexer
>
22 this->self
= lex::string("just something")
24 lex::_end
= lex::less(boost::phoenix::val(1))
32 typedef lex::lexertl::token
<char const*> token_type
;
33 typedef lex::lexertl::actor_lexer
<token_type
> lexer_type
;
35 test_lexer
<lexer_type
> lexer
;
37 return boost::report_errors();