diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-08-23 00:43:43 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-08-23 00:43:43 +0100 |
commit | f73a5316b6f76fa62979c29f4ec3620bf821dca0 (patch) | |
tree | bdc9639145bf44ef1396dc09110bce221ccdeafc /libstdc++-v3 | |
parent | 1bc7a28f9424f4abe021f1831c8f07c0f8f62b3f (diff) | |
download | gcc-f73a5316b6f76fa62979c29f4ec3620bf821dca0.zip gcc-f73a5316b6f76fa62979c29f4ec3620bf821dca0.tar.gz gcc-f73a5316b6f76fa62979c29f4ec3620bf821dca0.tar.bz2 |
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
Diffstat (limited to 'libstdc++-v3')
7 files changed, 16 insertions, 6 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e703ffb5..afa928b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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 diff --git a/libstdc++-v3/testsuite/23_containers/deque/capacity/max_size.cc b/libstdc++-v3/testsuite/23_containers/deque/capacity/max_size.cc index 3dabdd0..1a38c4e 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/capacity/max_size.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/capacity/max_size.cc @@ -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; diff --git a/libstdc++-v3/testsuite/23_containers/deque/modifiers/assign/1.cc b/libstdc++-v3/testsuite/23_containers/deque/modifiers/assign/1.cc index fbab09b..a6668f7 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/modifiers/assign/1.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/modifiers/assign/1.cc @@ -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()); diff --git a/libstdc++-v3/testsuite/23_containers/list/modifiers/assign/1.cc b/libstdc++-v3/testsuite/23_containers/list/modifiers/assign/1.cc index c5fde47..f4d3288 100644 --- a/libstdc++-v3/testsuite/23_containers/list/modifiers/assign/1.cc +++ b/libstdc++-v3/testsuite/23_containers/list/modifiers/assign/1.cc @@ -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()); diff --git a/libstdc++-v3/testsuite/23_containers/vector/bool/modifiers/assign/1.cc b/libstdc++-v3/testsuite/23_containers/vector/bool/modifiers/assign/1.cc index 833201b..06fb2ab 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/bool/modifiers/assign/1.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/bool/modifiers/assign/1.cc @@ -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()); diff --git a/libstdc++-v3/testsuite/23_containers/vector/capacity/max_size.cc b/libstdc++-v3/testsuite/23_containers/vector/capacity/max_size.cc index 499cd76..34d3c4a 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/capacity/max_size.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/capacity/max_size.cc @@ -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; diff --git a/libstdc++-v3/testsuite/23_containers/vector/modifiers/assign/1.cc b/libstdc++-v3/testsuite/23_containers/vector/modifiers/assign/1.cc index ca7b125..001f204 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/modifiers/assign/1.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/modifiers/assign/1.cc @@ -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()); |