]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/core/test/lightweight_test_fail10.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / core / test / lightweight_test_fail10.cpp
CommitLineData
b32b8144
FG
1//
2// Negative test for BOOST_TEST_EQ on const char*
3//
4// Copyright (c) 2017 Hans Dembinski
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
1e59de90
TL
11#if defined(__clang__)
12# pragma clang diagnostic ignored "-Wstring-plus-int"
13#endif
14
b32b8144
FG
15#include <boost/core/lightweight_test.hpp>
16
17int main()
18{
19 BOOST_TEST_EQ("xab"+1 , "yab"+1); // compares addresses, not cstrings
20
21 return boost::report_errors();
22}