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/elem.hpp>
9 #include <boost/detail/lightweight_test.hpp>
10 #include <boost/preprocessor/comparison/equal.hpp>
11 #include <boost/preprocessor/tuple/elem.hpp>
12
main()13 int main()
14 {
15
16 #if BOOST_PP_VARIADICS
17
18 #define A_TUPLE (*,#,zzz ())
19
20 #define BOOST_VMD_REGISTER_zzz (zzz)
21 #define BOOST_VMD_DETECT_zzz_zzz
22
23 BOOST_VMD_ASSERT
24 (
25 BOOST_PP_EQUAL
26 (
27 BOOST_PP_TUPLE_ELEM
28 (
29 2,
30 BOOST_VMD_ELEM(0,BOOST_PP_TUPLE_ELEM(2,A_TUPLE),(dummy1,zzz),BOOST_VMD_RETURN_AFTER,BOOST_VMD_RETURN_INDEX,BOOST_VMD_TYPE_IDENTIFIER)
31 ),
32 0
33 ),
34 BOOST_VMD_TEST_FAIL_IDENTIFIER
35 )
36
37 #endif
38
39 return boost::report_errors();
40
41 }
42