1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
// (C) Copyright Edward Diener 2011-2015
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#include <boost/vmd/equal.hpp>
#include <boost/vmd/not_equal.hpp>
#include <boost/detail/lightweight_test.hpp>
int main()
{
#if BOOST_PP_VARIADICS
#define BOOST_VMD_REGISTER_ggh (ggh)
#define BOOST_VMD_DETECT_ggh_ggh
#define BOOST_VMD_REGISTER_dvd (dvd)
#define BOOST_VMD_DETECT_dvd_dvd
#define ANIDENTIFIER ggh
#define ANUMBER 249
#define ANUMBER2 17
#define ASEQ (25)(26)(27)
#define ASEQ2 (1)(2)(3)
#define ATUPLE (0,(ggh,45,(2,(89,(dvd)(57)(99)))),170)
#define ALIST (0,(1,(2,(3,BOOST_PP_NIL))))
#define ALIST2 (0,(1,(2,(4,BOOST_PP_NIL))))
#define ANARRAY (3,(ggh,dvd,38))
#define ANARRAY2 (3,(dvd,ggh,38))
#define ASEQUENCE4
BOOST_TEST(BOOST_VMD_NOT_EQUAL(ASEQ,249));
BOOST_TEST(BOOST_VMD_NOT_EQUAL(ALIST,17));
BOOST_TEST(BOOST_VMD_NOT_EQUAL(ANIDENTIFIER,ANARRAY));
BOOST_TEST(BOOST_VMD_NOT_EQUAL(ANUMBER2,dvd));
BOOST_TEST(BOOST_VMD_EQUAL(ASEQUENCE4,));
BOOST_TEST(BOOST_VMD_EQUAL(,));
BOOST_TEST(BOOST_VMD_NOT_EQUAL(ANARRAY2,ASEQ2));
BOOST_TEST(BOOST_VMD_NOT_EQUAL(ASEQ,22));
BOOST_TEST(BOOST_VMD_NOT_EQUAL(ATUPLE,ANARRAY));
BOOST_TEST(BOOST_VMD_NOT_EQUAL(ALIST2,ANUMBER2));
BOOST_TEST(BOOST_VMD_NOT_EQUAL(ANARRAY,ASEQUENCE4));
#else
BOOST_ERROR("No variadic macro support");
#endif
return boost::report_errors();
}
|