]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/core/test/lightweight_test_eq_nullptr.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / core / test / lightweight_test_eq_nullptr.cpp
1 //
2 // Test BOOST_TEST_EQ( p, nullptr )
3 //
4 // Copyright 2017 Peter Dimov
5 //
6 // Distributed under the Boost Software License, Version 1.0.
7 // See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt
9 //
10
11 #include <boost/config.hpp>
12 #include <boost/core/lightweight_test.hpp>
13
14 int main()
15 {
16 #if !defined( BOOST_NO_CXX11_NULLPTR )
17
18 int x = 0;
19 int* p1 = 0;
20 int* p2 = &x;
21
22 BOOST_TEST_EQ( p1, nullptr );
23 BOOST_TEST_NE( p2, nullptr );
24
25 #endif
26
27 return boost::report_errors();
28 }