1286bc577f 
								
							 
						 
						
							
							
								
								Fix undefined behavior in container swap tests.  
							
							... 
							
							
							
							These swap tests were swapping non-POCS non-equal allocators which
is undefined behavior. This patch changes the tests to use allocators
which compare equal. In order to test that the allocators were not
swapped I added an "id" field to test_allocator which does not
participate in equality but does propagate across copies/swaps.
This patch is based off of D26623 which was submitted by STL.
llvm-svn: 289358 
							
						 
						
							2016-12-11 03:41:12 +00:00  
				
					
						
							
							
								 
						
							
								2cd516e049 
								
							 
						 
						
							
							
								
								Make swap_noexcept.pass.cpp tests more portable. Patch from STL@microsoft.com.  
							
							... 
							
							
							
							See D21820 for more information (https://reviews.llvm.org/D21820 ).
llvm-svn: 276590 
							
						 
						
							2016-07-25 00:15:29 +00:00  
				
					
						
							
							
								 
						
							
								f2f2a6395f 
								
							 
						 
						
							
							
								
								Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER.  
							
							... 
							
							
							
							This is a huge cleanup that helps make the libc++ test suite more portable.
Patch from STL@microsoft.com . Thanks STL!
llvm-svn: 272716 
							
						 
						
							2016-06-14 21:31:42 +00:00  
				
					
						
							
							
								 
						
							
								54238fd381 
								
							 
						 
						
							
							
								
								Make the comparison objects that we pass in for various tests look more like actual comparison objects. No functional change.  
							
							... 
							
							
							
							llvm-svn: 272288 
							
						 
						
							2016-06-09 18:34:38 +00:00  
				
					
						
							
							
								 
						
							
								6a23af0f33 
								
							 
						 
						
							
							
								
								Avoid Shadowing warnings in the associative containers tests. Thanks to STL for the patch.  
							
							... 
							
							
							
							llvm-svn: 272018 
							
						 
						
							2016-06-07 15:49:39 +00:00  
				
					
						
							
							
								 
						
							
								d04c685168 
								
							 
						 
						
							
							
								
								Remove trailing whitespace in test suite. Approved by Marshall Clow.  
							
							... 
							
							
							
							llvm-svn: 271435 
							
						 
						
							2016-06-01 21:35:39 +00:00  
				
					
						
							
							
								 
						
							
								d513ad88d5 
								
							 
						 
						
							
							
								
								Complete LWG issue  #2016 . Allocators must be nothrow swappable  
							
							... 
							
							
							
							llvm-svn: 267085 
							
						 
						
							2016-04-22 00:15:18 +00:00  
				
					
						
							
							
								 
						
							
								e0312a3047 
								
							 
						 
						
							
							
								
								Remove undefined behavior from tests; specifically, ensure that the value type of the allocators match the value type of the containers  
							
							... 
							
							
							
							llvm-svn: 254030 
							
						 
						
							2015-11-24 22:10:51 +00:00  
				
					
						
							
							
								 
						
							
								e3fbe1433b 
								
							 
						 
						
							
							
								
								Implement the first part of N4258: 'Cleaning up noexcept in the Library'. This patch deals with swapping containers, and implements a more strict noexcept specification (a conforming extension) than the standard mandates.  
							
							... 
							
							
							
							llvm-svn: 242056 
							
						 
						
							2015-07-13 20:04:56 +00:00  
				
					
						
							
							
								 
						
							
								8f55e62990 
								
							 
						 
						
							
							
								
								Remove use of zero length arrays in tests. Get tests passing with -pedantic-errors  
							
							... 
							
							
							
							llvm-svn: 228706 
							
						 
						
							2015-02-10 16:51:29 +00:00  
				
					
						
							
							
								 
						
							
								949389c395 
								
							 
						 
						
							
							
								
								We had two identical files named 'MoveOnly.h' in the test suite. Move one to support/, remove the other, and update all the tests that included them. No functionality change.  
							
							... 
							
							
							
							llvm-svn: 227370 
							
						 
						
							2015-01-28 21:22:53 +00:00  
				
					
						
							
							
								 
						
							
								5a83710e37 
								
							 
						 
						
							
							
								
								Move test into test/std subdirectory.  
							
							... 
							
							
							
							llvm-svn: 224658 
							
						 
						
							2014-12-20 01:40:03 +00:00