• 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.hpp>
8 #include <boost/vmd/number2.hpp>
9 #include <boost/detail/lightweight_test.hpp>
10 #include <boost/preprocessor/comparison/equal.hpp>
11 #include <boost/preprocessor/seq/elem.hpp>
12 #include <boost/preprocessor/tuple/elem.hpp>
13 
main()14 int main()
15   {
16 
17 #if BOOST_PP_VARIADICS
18 
19   #define A_SEQ (73 (split) clear)(red)(green 44)
20 
21   BOOST_VMD_ASSERT(BOOST_PP_EQUAL(BOOST_PP_TUPLE_ELEM(0,BOOST_VMD_NUMBER(BOOST_PP_SEQ_ELEM(0,A_SEQ))),72),BOOST_VMD_TEST_FAIL_NUMBER)
22 
23 #else
24 
25   typedef char BOOST_VMD_TEST_FAIL_NUMBER[-1];
26 
27 #endif
28 
29   return boost::report_errors();
30 
31   }
32