From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/boost/libs/xpressive/test/multiple_defs1.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/boost/libs/xpressive/test/multiple_defs1.cpp (limited to 'src/boost/libs/xpressive/test/multiple_defs1.cpp') diff --git a/src/boost/libs/xpressive/test/multiple_defs1.cpp b/src/boost/libs/xpressive/test/multiple_defs1.cpp new file mode 100644 index 00000000..8067294d --- /dev/null +++ b/src/boost/libs/xpressive/test/multiple_defs1.cpp @@ -0,0 +1,16 @@ +/////////////////////////////////////////////////////////////////////////////// +// multiple_defs1.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 +extern int f(); +int main() +{ + using namespace boost::xpressive; + sregex srx = +_; + sregex drx = sregex::compile(".+"); + return f(); +} -- cgit v1.2.3