Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / vmd / test / test_assert_is_list.cxx
1
2 //  (C) Copyright Edward Diener 2011-2015
3 //  Use, modification and distribution are subject to the Boost Software License,
4 //  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 //  http://www.boost.org/LICENSE_1_0.txt).
6
7 #include <boost/vmd/assert_is_list.hpp>
8 #include <boost/detail/lightweight_test.hpp>
9
10 int main()
11   {
12   
13 #if BOOST_PP_VARIADICS
14
15   #define A_LIST (e,(g,(&,BOOST_PP_NIL)))
16   
17   BOOST_VMD_ASSERT_IS_LIST((4,(x,BOOST_PP_NIL)))
18   BOOST_VMD_ASSERT_IS_LIST(((3,6m,irj),(x,BOOST_PP_NIL)))
19   BOOST_VMD_ASSERT_IS_LIST(A_LIST)
20   BOOST_VMD_ASSERT_IS_LIST(BOOST_PP_NIL)
21
22 #else
23
24   BOOST_VMD_ASSERT(0)
25   
26 #endif
27
28   return boost::report_errors();
29   
30   }