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:
parent
1bc7a28f94
commit
f73a5316b6
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue