hanchenye-llvm-project/libcxx/test
Howard Hinnant da9ca0b405 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.

llvm-svn: 180945
2013-05-02 20:18:43 +00:00
..
algorithms Somehow search_n never got tested, so of course it had a bug in it. This fixes http://llvm.org/bugs/show_bug.cgi?id=15667. 2013-04-04 15:40:48 +00:00
atomics 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). 2013-05-02 20:18:43 +00:00
containers After years of telling people: 'If you ever find any of my code that self-move-assigns, send me a bug report.' Somebody finally took me up on it. vector::erase(begin(), begin()) does a self-move-assign of every element in the vector, leaving all of those elements in an unspecified state. I checked the other containers for this same bug and did not find it. Added test case. 2013-04-18 15:02:57 +00:00
depr [tests] XFAIL a few things that require libc (?) support missing on Darwin. 2013-02-05 22:10:25 +00:00
diagnostics
input.output The move / swap members were not correctly taking all of the possible states of the basic_stringbuf into account. Just rewrote these members. Test included. This fixes http://llvm.org/bugs/show_bug.cgi?id=15659. 2013-04-03 20:21:29 +00:00
iterators Move common header files into a 'support' directory; make 'testit' include -I to that directory; rename 'iterators.h' to 'iterator_test.h'; remove hard-coded paths to include files from more than 350 source files 2013-01-05 03:21:01 +00:00
language.support [tests] XFAIL a few things that require libc (?) support missing on Darwin. 2013-02-05 22:10:25 +00:00
localization Add explicit casts to unsigned char before calling ctype functions. 2013-05-02 19:17:48 +00:00
numerics Marshall Clow found some divide-by-zero warnings with UBSan in rand's binomial_distribution test. This eliminates the divide-by-zeros and describes in comments the numerical difficulties the test is having. Each of the problematic tests are exploring edge cases of the distribution. 2013-03-23 19:29:45 +00:00
re Add explicit casts to unsigned char before calling ctype functions. 2013-05-02 19:17:48 +00:00
strings This is a start at making the libc++ test suite friendlier to the -fnoexceptions flag. Although this is not a complete solution, it does reduce the number of test failures on OS X from 467 to 128 on OS X when -fno-exceptions is enabled, and does not impact the number of failures at all when -fno-exceptions is not enabled. The bulk of this code was donated anonymously. 2013-03-23 17:27:16 +00:00
support İsmail Dönmez: Change to mktemp template to make it compatible with Linux. 2013-04-25 16:08:55 +00:00
thread Fixed race conditions in thread tests; exposed by UBSan 2013-03-26 15:28:33 +00:00
utilities default_delete needs a static_assert against void types. I had previously thought that sizeof(void) would take care of this. I was wrong. 2013-04-24 19:44:26 +00:00
CMakeLists.txt
lit.cfg [tests] Add support for a link_flags lit parameter. 2013-02-12 19:28:51 +00:00
lit.site.cfg.in
nothing_to_do.pass.cpp
testit Make it possible to provide special (linker) flags for the thread tests. 2013-05-02 19:21:36 +00:00