• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_seq.hpp>
8 #include <boost/preprocessor/tuple/elem.hpp>
9 #include <boost/detail/lightweight_test.hpp>
10 
main()11 int main()
12   {
13 
14 #if BOOST_PP_VARIADICS
15 
16   #define ATUPLE (0,1,2,3,((VMD_TEST_88_,VMD_TEST_1_))((VMD_TEST_99_,VMD_TEST_3_))((VMD_TEST_2_))((VMD_TEST_99_,VMD_TEST_100_,VMD_TEST_101_)))
17 
18 #if !BOOST_VMD_MSVC_V8
19 
20   #define AN_EMPTY_SEQ ()
21 
22 #endif
23 
24   BOOST_VMD_ASSERT_IS_SEQ((x))
25   BOOST_VMD_ASSERT_IS_SEQ((x)(y))
26   BOOST_VMD_ASSERT_IS_SEQ((x)(y)(z)(2)(3)(4))
27   BOOST_VMD_ASSERT_IS_SEQ((x)(y)(z)((1,2))(3)(4))
28   BOOST_VMD_ASSERT_IS_SEQ((x)(y)(z)((1,2))(3)((4,(x,BOOST_PP_NIL))))
29   BOOST_VMD_ASSERT_IS_SEQ((x)(y)((x)(y)(z)(2)(3)(4))((1,2))(3)((4,(x,BOOST_PP_NIL))))
30   BOOST_VMD_ASSERT_IS_SEQ(BOOST_PP_TUPLE_ELEM(4,ATUPLE))
31 
32 #if !BOOST_VMD_MSVC_V8
33 
34   BOOST_VMD_ASSERT_IS_SEQ(())
35   BOOST_VMD_ASSERT_IS_SEQ(AN_EMPTY_SEQ)
36 
37 #endif
38 
39 #else
40 
41   BOOST_VMD_ASSERT(0)
42 
43 #endif
44 
45   return boost::report_errors();
46 
47   }
48