]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/utility/test/value_init_test_fail1.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / utility / test / value_init_test_fail1.cpp
CommitLineData
7c673cae
FG
1// Copyright 2002, Fernando Luis Cacciola Carballal.
2//
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)
6//
7// Test program for "boost/utility/value_init.hpp"
8//
9// Initial: 21 Agu 2002
10
11#include <iostream>
12#include <string>
13
14#include "boost/utility/value_init.hpp"
15
20effc67 16#ifdef BOOST_BORLANDC
7c673cae
FG
17#pragma hdrstop
18#endif
19
11fdf7f2 20int main()
7c673cae
FG
21{
22 boost::value_initialized<int> const x_c ;
23
24 get(x_c) = 1234 ; // this should produce an ERROR
25
26 return 0;
27}