summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/xpressive/test/multiple_defs2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/xpressive/test/multiple_defs2.cpp')
-rw-r--r--src/boost/libs/xpressive/test/multiple_defs2.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/boost/libs/xpressive/test/multiple_defs2.cpp b/src/boost/libs/xpressive/test/multiple_defs2.cpp
new file mode 100644
index 00000000..b9305d81
--- /dev/null
+++ b/src/boost/libs/xpressive/test/multiple_defs2.cpp
@@ -0,0 +1,17 @@
+///////////////////////////////////////////////////////////////////////////////
+// multiple_defs2.cpp
+//
+// Copyright 2008 Eric Niebler. 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 <boost/xpressive/xpressive.hpp>
+
+int f()
+{
+ using namespace boost::xpressive;
+ sregex srx = +_;
+ sregex drx = sregex::compile(".+");
+
+ return 0;
+}