|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59487 - in trunk/libs/spirit/test: . support
From: hartmut.kaiser_at_[hidden]
Date: 2010-02-04 19:32:15
Author: hkaiser
Date: 2010-02-04 19:32:14 EST (Thu, 04 Feb 2010)
New Revision: 59487
URL: http://svn.boost.org/trac/boost/changeset/59487
Log:
Spirit: added testcase for latest regression
Added:
trunk/libs/spirit/test/support/multi_pass_regression001.cpp (contents, props changed)
Text files modified:
trunk/libs/spirit/test/Jamfile | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
Modified: trunk/libs/spirit/test/Jamfile
==============================================================================
--- trunk/libs/spirit/test/Jamfile (original)
+++ trunk/libs/spirit/test/Jamfile 2010-02-04 19:32:14 EST (Thu, 04 Feb 2010)
@@ -138,6 +138,9 @@
[ run lex/regression004.cpp : : : : lex_regression004 ]
[ run lex/regression005.cpp : : : : lex_regression005 ]
+ # support tests
+ [ compile support/multi_pass_regression001.cpp : : support_multi_pass_regression001 ]
+
;
}
Added: trunk/libs/spirit/test/support/multi_pass_regression001.cpp
==============================================================================
--- (empty file)
+++ trunk/libs/spirit/test/support/multi_pass_regression001.cpp 2010-02-04 19:32:14 EST (Thu, 04 Feb 2010)
@@ -0,0 +1,26 @@
+// Copyright (c) 2010 Chris Hoeppler
+//
+// 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)
+
+// This code below failed to compile with MSVC starting with Boost V1.42
+
+#include <vector>
+#include <boost/spirit/include/classic_position_iterator.hpp>
+#include <boost/spirit/include/qi.hpp>
+
+namespace char_enc = boost::spirit::ascii;
+namespace qi = boost::spirit::qi;
+
+int main()
+{
+ typedef std::vector<char> file_storage;
+ typedef boost::spirit::classic::position_iterator<
+ file_storage::const_iterator> iterator_type;
+
+ qi::rule<iterator_type, std::string(), qi::blank_type> top =
+ qi::lexeme[+char_enc::alpha];
+
+ return 0;
+}
+
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