teak-llvm/libcxx/test/std/algorithms/alg.nonmodifying
Eric Fiselier decf22e50f Fix most GCC test failures.
This patch fixes almost all currently failing tests when
using GCC ToT.

The specific changes are:

(A) Workaround gcc.gnu.org/PR83921 which rejects variables w/o initializers
in constexpr contexts -- even when the variable is an empty class. This
bug has been worked around at all callsites by adding an initializer.
Additionally a new test, constexpr_init.pass.cpp, has been added to
test that Clang doesn't suffer from these bugs.

(B) Fix streambuf.assign/swap.pass.cpp. This test was never actually
calling the swap method as intended. In fact, the swap function it
intended to call was ill-formed when instantiated. GCC diagnosed
this ill-formedness w/o needing an instantiation.

(C) size_delete11.pass.cpp was fixed by adding c++2a to the list of
unsupported dialects.

llvm-svn: 322810
2018-01-18 03:41:06 +00:00
..
alg.adjacent.find More P0202 constexpr-ifying. All the find_XXX algorithms in this commit. 2018-01-15 19:26:05 +00:00
alg.all_of Some of the tests from earlier today had 'int' as the return type when it should have been 'bool'. Fix that. It doesn't change the behavior of any of the tests, but it's more accurate. 2018-01-15 19:32:32 +00:00
alg.any_of Some of the tests from earlier today had 'int' as the return type when it should have been 'bool'. Fix that. It doesn't change the behavior of any of the tests, but it's more accurate. 2018-01-15 19:32:32 +00:00
alg.count More constexpr from P0202. count and count_if. Also fix a comment that Morwenn noted. 2018-01-15 19:40:34 +00:00
alg.equal More constexpr algorithms from P0202: lower_bound, upper_bound, equal_range, binary_search 2018-01-16 02:34:41 +00:00
alg.find More P0202 constexpr-ifying. All the find_XXX algorithms in this commit. 2018-01-15 19:26:05 +00:00
alg.find.end Fix most GCC test failures. 2018-01-18 03:41:06 +00:00
alg.find.first.of Fix most GCC test failures. 2018-01-18 03:41:06 +00:00
alg.foreach [libcxx] [test] Strip trailing whitespace. NFC. 2017-06-20 21:00:02 +00:00
alg.is_permutation Fix most GCC test failures. 2018-01-18 03:41:06 +00:00
alg.none_of Some of the tests from earlier today had 'int' as the return type when it should have been 'bool'. Fix that. It doesn't change the behavior of any of the tests, but it's more accurate. 2018-01-15 19:32:32 +00:00
alg.search More constexpr algorithms from P0202. search/search_n 2018-01-16 15:48:27 +00:00
mismatch Actually CALL the constexpr tests. 2018-01-16 02:11:13 +00:00
nothing_to_do.pass.cpp