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/is_empty_list.hpp>
8 #include <boost/detail/lightweight_test.hpp>
9
main()10 int main()
11 {
12
13 #if BOOST_PP_VARIADICS
14
15 #define A_LIST_PLUS (mmf,(34,(^^,(!,BOOST_PP_NIL)))) 456
16 #define PLUS_ALIST yyt (j,(ii%,BOOST_PP_NIL))
17 #define JDATA ggh
18 #define KDATA (a,(b,BOOST_PP_NIL)) name
19 #define A_SEQ ((25,BOOST_PP_NIL))((26,BOOST_PP_NIL))((27,BOOST_PP_NIL))
20 #define EMPTY_LIST BOOST_PP_NIL
21
22 BOOST_TEST(!BOOST_VMD_IS_EMPTY_LIST(anything));
23 BOOST_TEST(!BOOST_VMD_IS_EMPTY_LIST(A_LIST_PLUS));
24 BOOST_TEST(!BOOST_VMD_IS_EMPTY_LIST(PLUS_ALIST));
25 BOOST_TEST(!BOOST_VMD_IS_EMPTY_LIST(JDATA));
26 BOOST_TEST(!BOOST_VMD_IS_EMPTY_LIST(KDATA));
27 BOOST_TEST(!BOOST_VMD_IS_EMPTY_LIST(A_SEQ));
28 BOOST_TEST(BOOST_VMD_IS_EMPTY_LIST(EMPTY_LIST));
29
30 #else
31
32 BOOST_ERROR("No variadic macro support");
33
34 #endif
35
36 return boost::report_errors();
37
38 }
39