|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68292 - in trunk/libs/spirit/test: . qi
From: hartmut.kaiser_at_[hidden]
Date: 2011-01-19 11:08:55
Author: hkaiser
Date: 2011-01-19 11:08:52 EST (Wed, 19 Jan 2011)
New Revision: 68292
URL: http://svn.boost.org/trac/boost/changeset/68292
Log:
Adding test
Added:
trunk/libs/spirit/test/qi/regression_fusion_proto_spirit.cpp (contents, props changed)
Text files modified:
trunk/libs/spirit/test/Jamfile | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
Modified: trunk/libs/spirit/test/Jamfile
==============================================================================
--- trunk/libs/spirit/test/Jamfile (original)
+++ trunk/libs/spirit/test/Jamfile 2011-01-19 11:08:52 EST (Wed, 19 Jan 2011)
@@ -99,17 +99,17 @@
###########################################################################
test-suite spirit_v2/qi_regressions :
- [ compile qi/regression_attr_with_action.cpp : : qi_regression_attr_with_action ]
- [ compile qi/regression_debug_optional.cpp : : qi_regression_debug_optional ]
- [ compile qi/regression_one_element_fusion_sequence.cpp : : qi_regression_one_element_fusion_sequence ]
- [ compile qi/regression_one_element_sequence_attribute.cpp : : qi_regression_one_element_sequence_attribute ]
- [ run qi/regression_clear.cpp : : : : qi_regression_clear ]
- #[ run qi/regression_float_fraction.cpp : : : : qi_regression_float_fraction ]
- [ run qi/regression_lazy_repeat.cpp : : : : qi_regression_lazy_repeat ]
- [ run qi/regression_reorder.cpp : : : : qi_regression_reorder ]
- [ run qi/regression_repeat.cpp : : : : qi_regression_repeat ]
- [ run qi/regression_transform_assignment.cpp : : : : qi_regression_transform_assignment ]
-
+ [ compile qi/regression_attr_with_action.cpp : : qi_regression_attr_with_action ]
+ [ compile qi/regression_debug_optional.cpp : : qi_regression_debug_optional ]
+ [ compile qi/regression_one_element_fusion_sequence.cpp : : qi_regression_one_element_fusion_sequence ]
+ [ compile qi/regression_one_element_sequence_attribute.cpp : : qi_regression_one_element_sequence_attribute ]
+ [ run qi/regression_clear.cpp : : : : qi_regression_clear ]
+ #[ run qi/regression_float_fraction.cpp : : : : qi_regression_float_fraction ]
+ [ run qi/regression_lazy_repeat.cpp : : : : qi_regression_lazy_repeat ]
+ [ run qi/regression_reorder.cpp : : : : qi_regression_reorder ]
+ [ run qi/regression_repeat.cpp : : : : qi_regression_repeat ]
+ [ run qi/regression_transform_assignment.cpp : : : : qi_regression_transform_assignment ]
+ [ compile qi/regression_regression_fusion_proto_spirit.cpp : : qi_regression_fusion_proto_spirit ]
;
###########################################################################
Added: trunk/libs/spirit/test/qi/regression_fusion_proto_spirit.cpp
==============================================================================
--- (empty file)
+++ trunk/libs/spirit/test/qi/regression_fusion_proto_spirit.cpp 2011-01-19 11:08:52 EST (Wed, 19 Jan 2011)
@@ -0,0 +1,28 @@
+/*=============================================================================
+ Copyright (c) 2001-2011 Hartmut Kaiser
+ Copyright (c) 2011 Robert Nelson
+
+ 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)
+=============================================================================*/
+
+// These (compilation) tests verify that Proto's operator overloads do not
+// trigger the corresponding operator overloads exposed by Fusion.
+
+#include <boost/fusion/tuple.hpp>
+#include <boost/spirit/include/qi.hpp>
+#include <string>
+
+int main()
+{
+ namespace qi = boost::spirit::qi;
+
+ static qi::rule<std::string::const_iterator> const a;
+ static qi::rule<std::string::const_iterator> const b;
+ qi::rule<std::string::const_iterator> rule = a > b;
+
+ int vars;
+ qi::rule<std::string::const_iterator, int(const int&)> const r;
+ qi::rule<std::string::const_iterator, int()> r2 =
+ r(boost::phoenix::ref(vars)) > qi::eps;
+}
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