• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
11 #include <boost/core/lightweight_test.hpp>
12 
main()13 int main()
14 {
15     BOOST_TEST_EQ("xab"+1 , "yab"+1); // compares addresses, not cstrings
16 
17     return boost::report_errors();
18 }
19