]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/smart_ptr/test/scoped_array_eq_fail.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / smart_ptr / test / scoped_array_eq_fail.cpp
1 #include <boost/config.hpp>
2
3 #if defined(BOOST_MSVC)
4 #pragma warning(disable: 4786) // identifier truncated in debug info
5 #pragma warning(disable: 4710) // function not inlined
6 #pragma warning(disable: 4711) // function selected for automatic inline expansion
7 #pragma warning(disable: 4514) // unreferenced inline removed
8 #endif
9
10 //
11 // scoped_array_eq_fail.cpp - a negative test for "p == q"
12 //
13 // Copyright (c) 2008 Peter Dimov
14 //
15 // Distributed under the Boost Software License, Version 1.0. (See
16 // accompanying file LICENSE_1_0.txt or copy at
17 // http://www.boost.org/LICENSE_1_0.txt)
18 //
19
20 #include <boost/scoped_array.hpp>
21
22 int main()
23 {
24 boost::scoped_array<int> p, q;
25 p == q; // must fail
26 return 0;
27 }