mirror of
				https://github.com/boostorg/utility.git
				synced 2025-11-04 02:11:45 +01:00 
			
		
		
		
	Move test files to test/
This commit is contained in:
		
							
								
								
									
										37
									
								
								test/value_init_test_fail3.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								test/value_init_test_fail3.cpp
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,37 @@
 | 
			
		||||
// 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> const cx_c ;
 | 
			
		||||
 | 
			
		||||
  get(cx_c) = 1234 ; // this should produce an ERROR
 | 
			
		||||
 | 
			
		||||
  return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
unsigned int expected_failures = 0;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user