]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/vmd/test/test_equal_seq.cxx
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).
7 #include <boost/vmd/equal.hpp>
8 #include <boost/vmd/not_equal.hpp>
9 #include <boost/detail/lightweight_test.hpp>
14 #if BOOST_PP_VARIADICS
16 #define BOOST_VMD_REGISTER_ggh (ggh)
17 #define BOOST_VMD_DETECT_ggh_ggh
18 #define BOOST_VMD_REGISTER_dvd (dvd)
19 #define BOOST_VMD_DETECT_dvd_dvd
21 #define ASEQ (25)(26)(27)
22 #define ASEQ2 (1)(2)(3)
23 #define ASEQ3 (25)(26)(27)
24 #define ASEQ4 (25)((1)(2)(3)(4)(5))(27)
25 #define ASEQ5 (25)((1)(2)(4)(4)(5))(27)
26 #define ASEQ6 (25)((1)(2)(3)(4)(5))(27)
27 #define ASEQ7 (25)((1)(2)((11,12,13))(ggh)(5))(27)
28 #define ASEQ8 (25)((1)(2)((11,12,14))(dvd)(5))(27)
29 #define ASEQ9 (25)((1)(2)((11,12,13))(ggh)(5))(27)
31 BOOST_TEST(BOOST_VMD_EQUAL(ASEQ
,ASEQ3
));
32 BOOST_TEST(BOOST_VMD_EQUAL(ASEQ4
,ASEQ6
));
33 BOOST_TEST(BOOST_VMD_EQUAL(ASEQ7
,ASEQ9
));
34 BOOST_TEST(BOOST_VMD_NOT_EQUAL(ASEQ
,ASEQ2
));
35 BOOST_TEST(BOOST_VMD_NOT_EQUAL(ASEQ4
,ASEQ5
));
36 BOOST_TEST(BOOST_VMD_NOT_EQUAL(ASEQ7
,ASEQ8
));
40 BOOST_ERROR("No variadic macro support");
44 return boost::report_errors();