Fix tests that fail in C++98 mode

* testsuite/23_containers/deque/capacity/max_size.cc: Fix test for
	C++98 mode.
	* testsuite/23_containers/deque/modifiers/assign/1.cc: Likewise.
	* testsuite/23_containers/list/modifiers/assign/1.cc: Likewise.
	* testsuite/23_containers/vector/bool/modifiers/assign/1.cc: Likewise.
	* testsuite/23_containers/vector/capacity/max_size.cc: Likewise.
	* testsuite/23_containers/vector/modifiers/assign/1.cc: Likewise.

From-SVN: r263792
This commit is contained in:
Jonathan Wakely 2018-08-23 00:43:43 +01:00 committed by Jonathan Wakely
parent 1bc7a28f94
commit f73a5316b6
7 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,13 @@
2018-08-23 Jonathan Wakely <jwakely@redhat.com>
* testsuite/23_containers/deque/capacity/max_size.cc: Fix test for
C++98 mode.
* testsuite/23_containers/deque/modifiers/assign/1.cc: Likewise.
* testsuite/23_containers/list/modifiers/assign/1.cc: Likewise.
* testsuite/23_containers/vector/bool/modifiers/assign/1.cc: Likewise.
* testsuite/23_containers/vector/capacity/max_size.cc: Likewise.
* testsuite/23_containers/vector/modifiers/assign/1.cc: Likewise.
2018-08-22 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/87061

View File

@ -22,7 +22,7 @@
#include <limits>
#include <testsuite_hooks.h>
using test_type = std::deque<char>;
typedef std::deque<char> test_type;
typedef test_type::size_type size_type;
typedef test_type::difference_type difference_type;

View File

@ -27,7 +27,7 @@ int main()
{
std::deque<int> d;
int array[] { 0, 1, 2 };
int array[] = { 0, 1, 2 };
input_iterator_seq seq(array, array + 3);
d.assign(seq.begin(), seq.end());

View File

@ -27,7 +27,7 @@ int main()
{
std::list<int> l;
int array[] { 0, 1, 2 };
int array[] = { 0, 1, 2 };
input_iterator_seq seq(array, array + 3);
l.assign(seq.begin(), seq.end());

View File

@ -27,7 +27,7 @@ void test01()
std::vector<bool> bv;
bool array[] { false, true, true };
bool array[] = { false, true, true };
input_iterator_seq seq(array, array + 3);
bv.assign(seq.begin(), seq.end());

View File

@ -22,7 +22,7 @@
#include <limits>
#include <testsuite_hooks.h>
using test_type = std::vector<char>;
typedef std::vector<char> test_type;
typedef test_type::size_type size_type;
typedef test_type::difference_type difference_type;

View File

@ -27,7 +27,7 @@ void test01()
std::vector<int> v;
int array[] { 0, 1, 2 };
int array[] = { 0, 1, 2 };
input_iterator_seq seq(array, array + 3);
v.assign(seq.begin(), seq.end());