]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/json/test/json.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / json / test / json.cpp
1 //
2 // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // Official repository: https://github.com/boostorg/json
8 //
9
10 // Test that header file is self-contained.
11 #include <boost/json.hpp>
12
13 #include "test_suite.hpp"
14
15 BOOST_JSON_NS_BEGIN
16
17 struct json_test
18 {
19 ::test_suite::log_type log;
20
21 void
22 run()
23 {
24 log <<
25 "sizeof(alignof)\n"
26 " object == " << sizeof(object) << " (" << alignof(object) << ")\n"
27 " value_type == " << sizeof(object::value_type) << " (" << alignof(object::value_type) << ")\n"
28 " array == " << sizeof(array) << " (" << alignof(array) << ")\n"
29 " string == " << sizeof(string) << " (" << alignof(string) << ")\n"
30 " value == " << sizeof(value) << " (" << alignof(value) << ")\n"
31 " serializer == " << sizeof(serializer) << "\n"
32 " stream_parser == " << sizeof(stream_parser)
33 ;
34 BOOST_TEST_PASS();
35 }
36 };
37
38 TEST_SUITE(json_test, "boost.json.zsizes");
39
40 BOOST_JSON_NS_END