// Custom includes
#include "mpl.hh"
-#include <boost/test/auto_unit_test.hpp>
+#include "../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
#define prefix_
BOOST_CHECK( ! choice<C>::has_class_value );
}
+namespace {
+
+# define Begin() SENF_MPL_SLOT_DEF(accum, 0)
+# define Add(n) SENF_MPL_SLOT_SET(accum, SENF_MPL_SLOT_GET(accum)+n)
+# define End() BOOST_STATIC_CONSTANT(unsigned, total = SENF_MPL_SLOT_GET(accum))
+
+ struct Test
+ {
+ Begin();
+
+ Add(2);
+ Add(2);
+
+ // Here some comment ...
+
+ Add(4);
+
+ End();
+ };
+
+}
+
+BOOST_AUTO_UNIT_TEST(mplSlot)
+{
+ BOOST_CHECK_EQUAL( unsigned(Test::total), 8u );
+}
+
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_