llvm-project/libcxx/test/std
Eric Fiselier 6b3e48b46a Fix nodiscard failure tests on compilers w/o -verify.
Previously .fail.cpp tests for nodiscard were run with -Wunused-result
being a warning, not an error, when the compiler didn't support -verify.

When -verify isn't enabled this change judiciously adds -Werror=unused-result
when to only the failure tests containing the // expected-error string for nodiscard.

As a drive-by change, this patch also adds a missing // UNSUPPORTED: c++2a to
a test which was only supposed to run in C++ <= 11.

llvm-svn: 322776
2018-01-17 22:48:09 +00:00
..
algorithms More constexpr algorithms from P0202. search/search_n 2018-01-16 15:48:27 +00:00
atomics [libcxx] [test] Improve MSVC portability. 2018-01-10 00:39:46 +00:00
containers Mark LWG2824 as complete. We already did it, but I added a test to be sure 2018-01-03 04:37:30 +00:00
depr Change a bunch of comments from C++1z to C++17. NFC 2017-11-02 15:03:25 +00:00
diagnostics Change (void) casts to TEST_IGNORE_NODISCARD, as requested by Eric. Reviewed as https://reviews.llvm.org/D40065 2017-11-21 21:37:26 +00:00
experimental Add error code handling to remove_all test 2018-01-12 05:02:06 +00:00
input.output [libcxx] Make std::basic_istream::get 0-terminate input array in case of error. 2018-01-11 23:23:49 +00:00
iterators [libcxx] Define istream_iterator equality comparison operators out-of-line 2017-12-11 13:54:58 +00:00
language.support Fix nodiscard failure tests on compilers w/o -verify. 2018-01-17 22:48:09 +00:00
localization [libcxx] [test] Fix line endings, avoid unnecessary non-ASCII. 2017-12-13 00:51:31 +00:00
numerics Change add_ten to add_one to avoid triggering ubsan integer overflow. 2018-01-08 19:45:16 +00:00
re Add missing test_macros.h inclusion. 2017-11-21 22:16:57 +00:00
strings Fix the definitions of 'reference' and 'pointer' in string_view that no one uses :-). Thanks to K-ballo for the catch. 2017-12-20 16:31:40 +00:00
thread Revert commit removing allocator support from packaged_task. Will investigate further 2017-11-27 20:47:54 +00:00
utilities [libcxx] [test] Improve MSVC portability. 2018-01-10 00:39:46 +00:00
nothing_to_do.pass.cpp