|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69780 - trunk/libs/spirit/test/qi
From: hartmut.kaiser_at_[hidden]
Date: 2011-03-09 15:07:52
Author: hkaiser
Date: 2011-03-09 15:07:51 EST (Wed, 09 Mar 2011)
New Revision: 69780
URL: http://svn.boost.org/trac/boost/changeset/69780
Log:
Spirit: adding a failing test case to alternative.cpp
Text files modified:
trunk/libs/spirit/test/qi/alternative.cpp | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
Modified: trunk/libs/spirit/test/qi/alternative.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/alternative.cpp (original)
+++ trunk/libs/spirit/test/qi/alternative.cpp 2011-03-09 15:07:51 EST (Wed, 09 Mar 2011)
@@ -219,6 +219,15 @@
BOOST_TEST(i == 10);
}
+ {
+ //compile test only
+ typedef boost::variant<double, std::string> value_type;
+
+ using boost::spirit::qi::rule;
+ using boost::spirit::qi::eps;
+ rule<std::string::const_iterator, value_type()> r1 = r1 | eps;
+ }
+
return boost::report_errors();
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk