summaryrefslogtreecommitdiff
path: root/libs/utility/value_init_test_fail2.cpp
blob: bbc7c9039db273d0c35ebade8e16e5882e196167 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2002, Fernando Luis Cacciola Carballal.
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Test program for "boost/utility/value_init.hpp"
//
// Initial: 21 Agu 2002

#include <iostream>
#include <string>

#include "boost/utility/value_init.hpp"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#include "boost/test/minimal.hpp"

int test_main(int, char **)
{
  boost::value_initialized<int const> cx ;

  get(cx) = 1234 ; // this should produce an ERROR

  return 0;
}

unsigned int expected_failures = 0;