summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/phoenix/test/regression/bug5875.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/phoenix/test/regression/bug5875.cpp')
-rw-r--r--src/boost/libs/phoenix/test/regression/bug5875.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/boost/libs/phoenix/test/regression/bug5875.cpp b/src/boost/libs/phoenix/test/regression/bug5875.cpp
new file mode 100644
index 000000000..689c5808b
--- /dev/null
+++ b/src/boost/libs/phoenix/test/regression/bug5875.cpp
@@ -0,0 +1,23 @@
+/*=============================================================================
+ Copyright (c) 2014 John Fletcher
+
+ 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/phoenix.hpp>
+#include <vector>
+
+#include <boost/detail/lightweight_test.hpp>
+
+namespace phx = boost::phoenix;
+
+int main()
+{
+ std::vector<int> v = phx::let(phx::local_names::_a = std::vector<int>(3))
+ [
+ phx::local_names::_a
+ ]
+ ();
+ BOOST_TEST( v.size() == 3);
+}