]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/utility/test/value_init_test_fail2.cpp
1 // Copyright 2002, Fernando Luis Cacciola Carballal.
3 // Distributed under the Boost Software License, Version 1.0. (See
4 // accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 // Test program for "boost/utility/value_init.hpp"
9 // Initial: 21 Agu 2002
14 #include "boost/utility/value_init.hpp"
20 #include "boost/test/minimal.hpp"
22 int test_main(int, char **)
24 boost::value_initialized
<int const> cx
;
26 get(cx
) = 1234 ; // this should produce an ERROR
31 unsigned int expected_failures
= 0;