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.flag/default.pass.cpp
|
b64f8b07c104c6cc986570ac8ee0ed16a9f23976 |
|
16-Nov-2010 |
Howard Hinnant <hhinnant@apple.com> |
license change git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@119395 91177308-0d34-0410-b5e6-96231b3b80d8
/external/libcxx/test/atomics/atomics.flag/default.pass.cpp
|
79101aec3ad3070ad1378ca1450b72edf8ed67da |
|
30-Sep-2010 |
Howard Hinnant <hhinnant@apple.com> |
[atomics.flag] completed. Initialization is not working on clang and can't be made to work without defaulted default constructors. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@115207 91177308-0d34-0410-b5e6-96231b3b80d8
/external/libcxx/test/atomics/atomics.flag/default.pass.cpp
|