]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/core/test/first_scalar_test.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / core / test / first_scalar_test.cpp
1 /*
2 Copyright 2019 Glen Joseph Fernandes
3 (glenjofe@gmail.com)
4
5 Distributed under the Boost Software License, Version 1.0.
6 (http://www.boost.org/LICENSE_1_0.txt)
7 */
8 #include <boost/core/first_scalar.hpp>
9 #include <boost/core/lightweight_test.hpp>
10
11 int main()
12 {
13 int i1 = 0;
14 BOOST_TEST_EQ(boost::first_scalar(&i1), &i1);
15 int i2[4] = { };
16 BOOST_TEST_EQ(boost::first_scalar(i2), &i2[0]);
17 int i3[2][4][6] = { };
18 BOOST_TEST_EQ(boost::first_scalar(i3), &i3[0][0][0]);
19 return boost::report_errors();
20 }