Commit f73a5316 by Jonathan Wakely Committed by Jonathan Wakely

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
parent 1bc7a28f
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> 2018-08-22 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/87061 PR libstdc++/87061
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <limits> #include <limits>
#include <testsuite_hooks.h> #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::size_type size_type;
typedef test_type::difference_type difference_type; typedef test_type::difference_type difference_type;
......
...@@ -27,7 +27,7 @@ int main() ...@@ -27,7 +27,7 @@ int main()
{ {
std::deque<int> d; std::deque<int> d;
int array[] { 0, 1, 2 }; int array[] = { 0, 1, 2 };
input_iterator_seq seq(array, array + 3); input_iterator_seq seq(array, array + 3);
d.assign(seq.begin(), seq.end()); d.assign(seq.begin(), seq.end());
......
...@@ -27,7 +27,7 @@ int main() ...@@ -27,7 +27,7 @@ int main()
{ {
std::list<int> l; std::list<int> l;
int array[] { 0, 1, 2 }; int array[] = { 0, 1, 2 };
input_iterator_seq seq(array, array + 3); input_iterator_seq seq(array, array + 3);
l.assign(seq.begin(), seq.end()); l.assign(seq.begin(), seq.end());
......
...@@ -27,7 +27,7 @@ void test01() ...@@ -27,7 +27,7 @@ void test01()
std::vector<bool> bv; std::vector<bool> bv;
bool array[] { false, true, true }; bool array[] = { false, true, true };
input_iterator_seq seq(array, array + 3); input_iterator_seq seq(array, array + 3);
bv.assign(seq.begin(), seq.end()); bv.assign(seq.begin(), seq.end());
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <limits> #include <limits>
#include <testsuite_hooks.h> #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::size_type size_type;
typedef test_type::difference_type difference_type; typedef test_type::difference_type difference_type;
......
...@@ -27,7 +27,7 @@ void test01() ...@@ -27,7 +27,7 @@ void test01()
std::vector<int> v; std::vector<int> v;
int array[] { 0, 1, 2 }; int array[] = { 0, 1, 2 };
input_iterator_seq seq(array, array + 3); input_iterator_seq seq(array, array + 3);
v.assign(seq.begin(), seq.end()); v.assign(seq.begin(), seq.end());
......
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