74f4da7219100afcff4baab33d12910d29eb127e |
|
02-May-2013 |
Howard Hinnant <hhinnant@apple.com> |
Stephan Tolksdorf: fixes the issue in the <atomic> header and adds corresponding tests. I've used macros to fall back to a user-provided default constructor if _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS (though I suspect that there won't be many users defining that macro). The tests use placement new to check that atomic values get properly zero-initialized. I had to modify the atomic_is_lock_free test, because default initialization of an object of const type 'const A' (aka 'const atomic<int>') requires a user-provided default constructor. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@180945 91177308-0d34-0410-b5e6-96231b3b80d8
/external/libcxx/test/atomics/atomics.types.generic/bool.pass.cpp
|
6ae47055f958b95e1ab941b5209d6f6b91c3aed1 |
|
04-Jan-2013 |
Howard Hinnant <hhinnant@apple.com> |
atomic_bool was missing (just a typedef to atomic<bool>). git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@171498 91177308-0d34-0410-b5e6-96231b3b80d8
/external/libcxx/test/atomics/atomics.types.generic/bool.pass.cpp
|
d3eca759a2ce3125613fb840287c77ee1f372b10 |
|
05-Apr-2012 |
David Chisnall <csdavec@swan.ac.uk> |
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! git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@154095 91177308-0d34-0410-b5e6-96231b3b80d8
/external/libcxx/test/atomics/atomics.types.generic/bool.pass.cpp
|
f02417b600ee58299effa60b5ffd9d58b8bc3129 |
|
08-Dec-2010 |
Howard Hinnant <hhinnant@apple.com> |
atomics ... git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@121202 91177308-0d34-0410-b5e6-96231b3b80d8
/external/libcxx/test/atomics/atomics.types.generic/bool.pass.cpp
|