]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/spirit/test/lex/regression_less_8563.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / spirit / test / lex / regression_less_8563.cpp
CommitLineData
7c673cae
FG
1// Copyright (c) 2013 Andreas Pokorny
2//
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)
5
6#include <boost/detail/lightweight_test.hpp>
7#include <boost/config/warning_disable.hpp>
8
9#include <boost/phoenix.hpp>
10#include <boost/spirit/include/lex_lexertl.hpp>
11
12#include <fstream>
13
14using namespace std;
15using namespace boost::spirit;
16
17template <typename BaseLexer>
18struct test_lexer : boost::spirit::lex::lexer<BaseLexer>
19{
20 test_lexer()
21 {
22 this->self = lex::string("just something")
23 [
24 lex::_end = lex::less(boost::phoenix::val(1))
25 ]
26 ;
27 }
28};
29
b32b8144 30int main()
7c673cae
FG
31{
32 typedef lex::lexertl::token<char const*> token_type;
33 typedef lex::lexertl::actor_lexer<token_type> lexer_type;
34
35 test_lexer<lexer_type> lexer;
36
37 return boost::report_errors();
38}