• 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_array.hpp>
8 #include <boost/detail/lightweight_test.hpp>
9 
main()10 int main()
11   {
12 
13 #if BOOST_PP_VARIADICS
14 
15   #define AN_ARRAY (7,(5,7,f,x,%,#,U))
16 #if !BOOST_VMD_MSVC_V8
17   #define AN_EMPTY_ARRAY (0,())
18 #endif
19 
20   BOOST_VMD_ASSERT_IS_ARRAY((4,(x,3,e,2)))
21   BOOST_VMD_ASSERT_IS_ARRAY((6,(x,3,e,2,(4,(x,3,e,2)),%)))
22   BOOST_VMD_ASSERT_IS_ARRAY(AN_ARRAY)
23 #if !BOOST_VMD_MSVC_V8
24   BOOST_VMD_ASSERT_IS_ARRAY(AN_EMPTY_ARRAY)
25 #endif
26 
27 #else
28 
29   BOOST_VMD_ASSERT(0)
30 
31 #endif
32 
33   return boost::report_errors();
34 
35   }
36