summaryrefslogtreecommitdiffstats
path: root/libcxx/test
Commit message (Collapse)AuthorAgeFilesLines
* Make check-libcxx Py3-compatible.NAKAMURA Takumi2015-11-091-3/+3
| | | | llvm-svn: 252458
* Implement LWG#2353: std::next is over-constrainedMarshall Clow2015-11-071-0/+4
| | | | llvm-svn: 252407
* More of P0006R0: type traits variable aliases for C++17.Marshall Clow2015-11-0726-5/+234
| | | | llvm-svn: 252406
* Allow deque to handle incomplete types.Evgeniy Stepanov2015-11-061-0/+31
| | | | | | | | Allow deque and deque::iterator instantiation with incomplete element type. This is an ABI breaking change, and it is only enabled if LIBCXX_ABI_VERSION >= 2 or LIBCXX_ABI_UNSTABLE=ON. llvm-svn: 252350
* Implement P0092R1 for C++1zMarshall Clow2015-11-0514-0/+589
| | | | llvm-svn: 252195
* Remove undefined behavior from some tests. Same pattern as the ↵Marshall Clow2015-11-022-10/+16
| | | | | | unitialized_copy tests llvm-svn: 251804
* Remove undefined behavior from some tests. Thanks to Walter Brown for the ↵Marshall Clow2015-11-022-10/+18
| | | | | | heads-up. llvm-svn: 251802
* Add 'nostdinc++' to the flags used by testit. Makes the tests run better on ↵Marshall Clow2015-11-011-1/+1
| | | | | | Mac OS X with the new depr.c headers change llvm-svn: 251768
* Improve the tests for 'is_literal_type'Marshall Clow2015-11-011-18/+62
| | | | llvm-svn: 251767
* Implement the first part of P0006R0: Adopt Type Traits Variable Templates ↵Marshall Clow2015-11-0134-0/+2198
| | | | | | for C++17. Significantly augment the existing tests. llvm-svn: 251766
* Implement P0004R1 'Remove Deprecated iostreams aliases'Marshall Clow2015-10-295-0/+25
| | | | llvm-svn: 251618
* Adapt to lit change in llvm r251478-r251481Matthias Braun2015-10-281-8/+13
| | | | | | Sorry for the breakage. llvm-svn: 251529
* Fix test suite configuration. Sorry MarshallEric Fiselier2015-10-261-1/+3
| | | | llvm-svn: 251334
* Fix LWG#2489: mem_fn() should be noexceptMarshall Clow2015-10-251-0/+3
| | | | llvm-svn: 251257
* Add the tests for the last commitMarshall Clow2015-10-252-0/+144
| | | | llvm-svn: 251254
* Add a test for LWG#2466: allocator_traits::max_size() default behavior is ↵Marshall Clow2015-10-251-2/+2
| | | | | | incorrect llvm-svn: 251252
* Add a test for LWG#2462: std::ios_base::failure is overspecifiedMarshall Clow2015-10-251-0/+3
| | | | llvm-svn: 251250
* Fix LWG#2127: Move-construction with raw_storage_iterator.Marshall Clow2015-10-251-4/+23
| | | | llvm-svn: 251247
* Fix LWG#2244: basic_istream::seekgMarshall Clow2015-10-251-0/+9
| | | | llvm-svn: 251246
* Set LC_COLLATE rather than LANG to override collation.Tim Northover2015-10-231-1/+1
| | | | | | | On a system with LC_COLLATE=C, this takes precedence over a non-C LANG the test tries to impose and the test fails. llvm-svn: 251131
* [libcxx] Make it drastically simpler to link libc++.Eric Fiselier2015-10-141-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Currently on most platforms you have to manually link the c++ abi library used with libc++ whenever you use libc++. So your typical libc++ command like invocation might look like: ``` clang++ -stdlib=libc++ foo.cpp -lc++abi ``` Having to manually link `libc++abi.so` makes it harder for libc++ to be used generically. This patch fixes that by generating a linker script for `libc++.so` that correctly links the ABI library. On linux the linker script for libc++abi would look like: ``` # libc++.so INPUT(libc++.so.1 -lc++abi) ``` With the linker script you can now use libc++ using only `-stdlib=libc++`. This is the technique that is used on FreeBSD in ordered to link cxxrt and I think it's the best approach to make our users lives simpler. The CMake option used to enable this is `LIBCXX_ENABLE_ABI_LINKER_SCRIPT`. In future I would like to enable this by default on all platforms except for Darwin. Reviewers: mclow.lists, danalbert, rsmith, jroelofs, EricWF Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D12508 llvm-svn: 250319
* Split out config_site logic so libc++abi can use itEric Fiselier2015-10-141-12/+15
| | | | llvm-svn: 250312
* [libcxx] Use __config_site to configure the test suite features.Eric Fiselier2015-10-143-70/+57
| | | | | | | | | | | | | | | Summary: This patch changes the tests to use the "__config_site" header if present instead of manually configuring for each option. This patch also removes the test flags for configuring some of these options. For example "lit -sv --param=enable_threads=OFF" no longer works. However lit will still correctly configure if the CMake option "-DLIBCXX_ENABLE_THREADS=OFF" is given at build time. This patch will fix the libc++abi test configuration for `LIBCXX_ABI_VERSION` and `LIBCXX_ABI_UNSTABLE` one we teach it about 'project_obj_dir' . I would like to land this ASAP to prevent more work blockage. Reviewers: mclow.lists, danalbert, eugenis, ed, jroelofs Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D13714 llvm-svn: 250308
* Use __config_site when building libc++. Also cleanup ABI versioning docEric Fiselier2015-10-141-1/+3
| | | | llvm-svn: 250261
* ABI versioning macros for libc++.Evgeniy Stepanov2015-10-133-0/+13
| | | | | | | | C++ macros and CMake options that specify the default ABI version of the library, and can be overridden to pick up new ABI-changing features. llvm-svn: 250254
* Fix use of libc++ <foo.h> headers from within an 'extern "C"' context in C++98.Richard Smith2015-10-131-0/+43
| | | | | | Previously, this resulted in us declaring a template for static_assert emulation within the 'extern "C"' context, which is ill-formed. llvm-svn: 250247
* [Darwin] Reworking r250003 to use lit.util.capture instead of subprocess.Chris Bieneman2015-10-121-6/+2
| | | | llvm-svn: 250007
* [Darwin] Need to add -isysroot on OS X otherwise the tests will fail if you ↵Chris Bieneman2015-10-121-0/+21
| | | | | | | | don't have the command line tools package installed. This mirrors how other LLVM suites are configured for running on OS X. llvm-svn: 250003
* Revert r249931 - Remove same_decls.pass.cpp because it fails on OS X and in ↵Eric Fiselier2015-10-101-517/+0
| | | | | | C++03 mode. llvm-svn: 249938
* Get some of wchar_h.pass.cpp working on apple.Eric Fiselier2015-10-101-10/+16
| | | | llvm-svn: 249936
* Unrevert r249889, and XFAIL the test for Darwin, where the libc apparently ↵Richard Smith2015-10-101-11/+24
| | | | | | doesn't provide a correct overload set for some functions. llvm-svn: 249932
* Add a test that we declare the right set of C library function signatures in ::Richard Smith2015-10-101-0/+517
| | | | | | and std::, and that the names in :: and std:: are declaring the same entity. llvm-svn: 249931
* Revert r249889 due to bot failure.Manman Ren2015-10-101-18/+11
| | | | llvm-svn: 249926
* Split <wchar.h> out of <cwchar>.Richard Smith2015-10-091-11/+18
| | | | llvm-svn: 249889
* Split <stdlib.h> out of <cstdlib>.Richard Smith2015-10-091-0/+24
| | | | llvm-svn: 249800
* Split <stdio.h> out of <cstdio>.Richard Smith2015-10-091-0/+20
| | | | | | As with <stddef.h>, skip our custom header if __need_FILE or __need___FILE is defined. llvm-svn: 249798
* Fix test failure in C++98 mode due to imperfect static_assert emulation.Richard Smith2015-10-081-1/+1
| | | | llvm-svn: 249780
* Split <stddef.h> out of <cstddef>.Richard Smith2015-10-081-0/+22
| | | | | | | | | | | | | | There are a bunch of macros (__need_size_t etc) that request just one piece of <stddef.h>; if any one of these is defined, we just directly include the underlying header. Note that <stddef.h> provides a ::nullptr_t. We don't want that available to includers of <cstddef>, so instead of following the usual pattern where <cfoo> includes <foo.h> then pulls things from :: into std:: with using-declarations, we implement <stddef.h> and <cstddef> separately; both include <__nullptr> for the definition of std::nullptr_t. llvm-svn: 249761
* Split <setjmp.h> out of <csetjmp>.Richard Smith2015-10-081-0/+4
| | | | llvm-svn: 249743
* Split <math.h> out of <cmath>.Richard Smith2015-10-083-22/+884
| | | | llvm-svn: 249742
* Split <inttypes.h> out of <cinttypes>.Richard Smith2015-10-081-2/+287
| | | | llvm-svn: 249741
* Split <ctype.h> out of <cctype>.Richard Smith2015-10-081-14/+14
| | | | llvm-svn: 249738
* While researching LWG#2244, I noticed we weren't testing that eofbit was ↵Marshall Clow2015-10-071-0/+9
| | | | | | being cleared. Now we are llvm-svn: 249593
* Our test allocators support move/copy construction; they should support ↵Marshall Clow2015-10-061-1/+7
| | | | | | move/copy assignment as well llvm-svn: 249458
* Fixed a possible overflow in a test of allocator::max_size().Marshall Clow2015-10-051-2/+2
| | | | llvm-svn: 249349
* Implement LWG#2063, and update the issues links to point to the github ↵Marshall Clow2015-10-051-0/+6
| | | | | | generated pages llvm-svn: 249325
* [libcxx] Use newest supported language dialect when running the test suite.Eric Fiselier2015-10-031-1/+14
| | | | | | | | | | | | | | | Summary: Currently the test suite defaults to C++11 mode if no standard version is supplied to LIT using `--param=std=c++XX`. This patch changes that behavior so that the newest possible dialect is selected instead. I have already patched the C++11 bot to explicitly specify `--param=std=c++11`. I'm just putting this up for review to see if anybody objects to this idea. Reviewers: mclow.lists, jroelofs, danalbert Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D13331 llvm-svn: 249226
* Attempt to prevent flaky thread.mutex tests by once again increasing timing ↵Eric Fiselier2015-10-0113-28/+37
| | | | | | tolerances llvm-svn: 248993
* Manually suppress -Wnonnull when it occurs in an unevaluated contextEric Fiselier2015-10-012-0/+12
| | | | llvm-svn: 248989
* Suppress array initialization warnings in std::experimental::apply testsEric Fiselier2015-10-0119-18/+62
| | | | llvm-svn: 248987
OpenPOWER on IntegriCloud