summaryrefslogtreecommitdiff
path: root/libs/fusion/test/sequence/nil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/fusion/test/sequence/nil.cpp')
-rw-r--r--libs/fusion/test/sequence/nil.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/libs/fusion/test/sequence/nil.cpp b/libs/fusion/test/sequence/nil.cpp
new file mode 100644
index 0000000000..bdc8c3528c
--- /dev/null
+++ b/libs/fusion/test/sequence/nil.cpp
@@ -0,0 +1,25 @@
+/*=============================================================================
+ Copyright (c) 2014 Louis Dionne
+
+ 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/detail/lightweight_test.hpp>
+#include <boost/fusion/container/list/cons_iterator.hpp>
+#include <boost/fusion/container/list/nil.hpp>
+#include <boost/fusion/support/config.hpp>
+#include <boost/mpl/bool.hpp>
+
+
+int main() {
+ using namespace boost::fusion;
+
+ // nil should be constexpr constructible
+ {
+ BOOST_CONSTEXPR nil x1 = nil();
+ BOOST_CONSTEXPR nil x2 = nil(nil_iterator(), boost::mpl::true_());
+ (void)x1; (void)x2;
+ }
+
+ return boost::report_errors();
+}