hanchenye-llvm-project/libcxx
David Chisnall 4fa71de024 Fix the remaining atomic tests, all of which were wrong for the case where a
compare-and-exchange failed (it should update the expected value to the current
value, and the tests were checking that it didn't...).

Results of the atomics part of the test suite on FreeBSD with clang trunk and
the atomic.c from compiler-rt (currently kludged into the test, not installed
properly):

****************************************************
Results for /root/libc++/test/atomics:
using clang version 3.1 (trunk 153415)
Target: x86_64-unknown-freebsd10.0
Thread model: posix
with -std=c++0x -stdlib=libc++ -pthread /tmp/atomic.o  
----------------------------------------------------
sections without tests   : 0
sections with failures   : 0
sections without failures: 14
                       +   ----
total number of sections : 14
----------------------------------------------------
number of tests failed   : 0
number of tests passed   : 52
                       +   ----
total number of tests    : 52
****************************************************

Yay!

llvm-svn: 154095
2012-04-05 13:48:16 +00:00
..
cmake http://llvm.org/bugs/show_bug.cgi?id=9399 fixed by Ryuta Suzuki 2011-05-24 12:54:00 +00:00
include Fix use of __atomic_is_lock_free() intrinsic. 2012-04-05 13:13:24 +00:00
lib Allow libc++ to be built with CMake from within the LLVM tree. The libc++ part is just some renaming as the variable was already in use, conflicting with something else in the LLVM tree. Contributed by Ruben Van Boxem. 2012-03-19 15:40:23 +00:00
src Put std::piecewise_construct_t back into the dylib for ABI stability. When clients are in C++11/constexpr mode this will be safely ignored because piecewise_construct is then declared with internal linkage. 2012-04-03 23:45:46 +00:00
test Fix the remaining atomic tests, all of which were wrong for the case where a 2012-04-05 13:48:16 +00:00
www Updated documentation contributed by Christopher Jefferson. 2012-04-03 15:08:42 +00:00
CMakeLists.txt Add CMake build and fix major Linux blockers. 2010-12-10 19:47:54 +00:00
CREDITS.TXT Update <limits> with constexpr support. Patch contributed by Jonathan Sauer. 2012-04-02 19:23:15 +00:00
LICENSE.TXT Happy new year 2012! 2012-01-01 08:16:56 +00:00
Makefile Fix .PHONY target to match new installheaders target. 2012-01-21 06:16:39 +00:00