gcc/libstdc++-v3/testsuite/30_threads
Jonathan Wakely 2104ca71da Fix tests that fail in C++2a mode
The nested typedefs in std::reference_wrapper are no longer present in
C++2a mode, so skip the tests that check for them.

The addition of the [[nodiscard]] attribute to a few functions causes
some failures in tests that intentionally ignore the return value.
Casting the result to void suppresses the new warnings.

	* testsuite/20_util/reference_wrapper/result_type.cc: Disable for
	C++2a.
	* testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.
	* testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
	* testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
	* testsuite/30_threads/async/54297.cc: Suppress nodiscard warning.
	* testsuite/ext/array_allocator/26875.cc: Likewise.
	* testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise.
	* testsuite/util/replacement_memory_operators.h: Likewise.
	* testsuite/util/testsuite_allocator.h: Likewise.

From-SVN: r268355
2019-01-29 00:47:32 +00:00
..
async Fix tests that fail in C++2a mode 2019-01-29 00:47:32 +00:00
call_once Update copyright years. 2019-01-01 13:31:55 +01:00
condition_variable Update copyright years. 2019-01-01 13:31:55 +01:00
condition_variable_any Update copyright years. 2019-01-01 13:31:55 +01:00
future Update copyright years. 2019-01-01 13:31:55 +01:00
headers Update copyright years. 2019-01-01 13:31:55 +01:00
lock Update copyright years. 2019-01-01 13:31:55 +01:00
lock_guard Update copyright years. 2019-01-01 13:31:55 +01:00
mutex Update copyright years. 2019-01-01 13:31:55 +01:00
once_flag/cons Update copyright years. 2019-01-01 13:31:55 +01:00
packaged_task Update copyright years. 2019-01-01 13:31:55 +01:00
promise Update copyright years. 2019-01-01 13:31:55 +01:00
recursive_mutex Update copyright years. 2019-01-01 13:31:55 +01:00
recursive_timed_mutex Update copyright years. 2019-01-01 13:31:55 +01:00
scoped_lock Update copyright years. 2019-01-01 13:31:55 +01:00
shared_future Update copyright years. 2019-01-01 13:31:55 +01:00
shared_lock Update copyright years. 2019-01-01 13:31:55 +01:00
shared_mutex Update copyright years. 2019-01-01 13:31:55 +01:00
shared_timed_mutex Update copyright years. 2019-01-01 13:31:55 +01:00
this_thread Update copyright years. 2019-01-01 13:31:55 +01:00
thread Update copyright years. 2019-01-01 13:31:55 +01:00
timed_mutex Update copyright years. 2019-01-01 13:31:55 +01:00
try_lock Update copyright years. 2019-01-01 13:31:55 +01:00
unique_lock Update copyright years. 2019-01-01 13:31:55 +01:00