]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/vmd/test/test_seq_size.cxx
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / vmd / test / test_seq_size.cxx
1
2 // (C) Copyright Edward Diener 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/seq/size.hpp>
8 #include <boost/detail/lightweight_test.hpp>
9
10 int main()
11 {
12
13 #if BOOST_PP_VARIADICS
14
15 #define A_SEQ (1)(2)(3)(4)
16 #define AN_EMPTY_SEQ
17
18 BOOST_TEST_EQ(BOOST_VMD_SEQ_SIZE(A_SEQ),4);
19 BOOST_TEST_EQ(BOOST_VMD_SEQ_SIZE(AN_EMPTY_SEQ),0);
20
21 #else
22
23 BOOST_ERROR("No variadic macro support");
24
25 #endif
26
27 return boost::report_errors();
28
29 }