2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-19 16:52:10 +00:00
Files
spirit/test/x3/grammar_linker.cpp
Nikita Kniazev 6a7c758376 Switch to the new location of lightweight test
Old location had been deprecated for a long time already.
2021-08-23 21:45:17 +03:00

25 lines
690 B
C++

/*=============================================================================
Copyright (c) 2019 Nikita Kniazev
Copyright (c) 2019 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/
#include "grammar.hpp"
#include <boost/core/lightweight_test.hpp>
int main()
{
char const* s = "123", * e = s + std::strlen(s);
#if 1
auto r = parse(s, e, grammar);
#else
int i = 0;
auto r = parse(s, e, grammar, i);
#endif
BOOST_TEST(r);
return boost::report_errors();
}