]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/vmd/test/test_doc_identifier.cxx
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / vmd / test / test_doc_identifier.cxx
CommitLineData
7c673cae
FG
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/is_identifier.hpp>
8#include <boost/detail/lightweight_test.hpp>
9
10int main()
11 {
12
13#if BOOST_PP_VARIADICS
14
15 #define BOOST_VMD_REGISTER_yellow (yellow)
16 #define BOOST_VMD_REGISTER_green (green)
17 #define BOOST_VMD_REGISTER_blue (blue)
18
19 BOOST_TEST(BOOST_VMD_IS_IDENTIFIER(yellow));
20 BOOST_TEST(BOOST_VMD_IS_IDENTIFIER(green));
21 BOOST_TEST(BOOST_VMD_IS_IDENTIFIER(blue));
22 BOOST_TEST(!BOOST_VMD_IS_IDENTIFIER(purple));
23
24#else
25
26BOOST_ERROR("No variadic macro support");
27
28#endif
29
30 return boost::report_errors();
31
32 }