2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-19 04:42:11 +00:00
Files
spirit/test/qi/regression_debug_optional.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

26 lines
667 B
C++

// Copyright (c) 2010 Carl Philipp Reh
// Copyright (c) 2001-2010 Hartmut Kaiser
//
// 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)
// make sure optionals play well with debug output
#define BOOST_SPIRIT_DEBUG
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/home/support/attributes.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/optional.hpp>
int main()
{
boost::spirit::qi::rule<
char const *,
boost::optional<int>()
> foo;
BOOST_SPIRIT_DEBUG_NODE(foo);
return boost::report_errors();
}