gcc/libstdc++-v3/testsuite/20_util/reference_wrapper
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
..
24803.cc Update copyright years. 2019-01-01 13:31:55 +01:00
41792.cc Update copyright years. 2019-01-01 13:31:55 +01:00
80504.cc Update copyright years. 2019-01-01 13:31:55 +01:00
83427.cc Update copyright years. 2019-01-01 13:31:55 +01:00
deduction.cc Update copyright years. 2019-01-01 13:31:55 +01:00
incomplete.cc P0357R3 reference_wrapper for incomplete types 2019-01-11 23:41:11 +00:00
invoke-2.cc Update copyright years. 2019-01-01 13:31:55 +01:00
invoke-3.cc Update copyright years. 2019-01-01 13:31:55 +01:00
invoke.cc Update copyright years. 2019-01-01 13:31:55 +01:00
lwg2993.cc Update copyright years. 2019-01-01 13:31:55 +01:00
ref_neg.cc Update copyright years. 2019-01-01 13:31:55 +01:00
requirements.cc Update copyright years. 2019-01-01 13:31:55 +01:00
result_type.cc Fix tests that fail in C++2a mode 2019-01-29 00:47:32 +00:00
typedefs-2.cc Fix tests that fail in C++2a mode 2019-01-29 00:47:32 +00:00
typedefs-3.cc Fix tests that fail in C++2a mode 2019-01-29 00:47:32 +00:00
typedefs.cc Fix tests that fail in C++2a mode 2019-01-29 00:47:32 +00:00