Commit d561a18e by Jonathan Wakely Committed by Jonathan Wakely

Fix more tests that fail in C++2a mode

	* testsuite/23_containers/unordered_map/requirements/debug_container.cc:
	Do not test allocator rebinding extension for C++2a.
	* testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Change
	dg-do directive for C++17 and C++2a.

From-SVN: r272009
parent 268d509d
2019-06-06 Jonathan Wakely <jwakely@redhat.com> 2019-06-06 Jonathan Wakely <jwakely@redhat.com>
* testsuite/23_containers/unordered_map/requirements/debug_container.cc:
Do not test allocator rebinding extension for C++2a.
* testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Change
dg-do directive for C++17 and C++2a.
* testsuite/23_containers/deque/requirements/explicit_instantiation/ * testsuite/23_containers/deque/requirements/explicit_instantiation/
1_c++0x.cc: Remove redundant test. 1_c++0x.cc: Remove redundant test.
* testsuite/23_containers/deque/requirements/explicit_instantiation/ * testsuite/23_containers/deque/requirements/explicit_instantiation/
......
...@@ -30,7 +30,7 @@ template class __gnu_debug::unordered_map<string, float>; ...@@ -30,7 +30,7 @@ template class __gnu_debug::unordered_map<string, float>;
template class __gnu_debug::unordered_map<string, int, template class __gnu_debug::unordered_map<string, int,
hash<string>, equal_to<string>, hash<string>, equal_to<string>,
allocator<pair<const string, int>>>; allocator<pair<const string, int>>>;
#ifndef __STRICT_ANSI__ #if !defined __STRICT_ANSI__ && __cplusplus <= 201703L
template class __gnu_debug::unordered_map<string, float, template class __gnu_debug::unordered_map<string, float,
hash<string>, equal_to<string>, hash<string>, equal_to<string>,
allocator<char>>; allocator<char>>;
......
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } } // { dg-do run { target { c++11_only || c++14_only } } }
// { dg-do compile { target c++17 } }
#include <unordered_set> #include <unordered_set>
#include <memory> #include <memory>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment