]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/static_assert/static_assert_test_fail_4.cpp
1 // (C) Copyright Steve Cleary & John Maddock 2000.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 // See http://www.boost.org for most recent version including documentation.
8 #include <boost/config.hpp>
9 #include <boost/static_assert.hpp>
12 // all these tests should fail:
20 // Member function scope: provides access to member variables
25 #if !defined(BOOST_MSVC) || BOOST_MSVC > 1200 // broken sizeof in VC6
26 BOOST_STATIC_ASSERT(sizeof(x
) == 4);
27 BOOST_STATIC_ASSERT(sizeof(c
) == 1);
28 BOOST_STATIC_ASSERT((sizeof(x
) == sizeof(c
))); // should not compile