aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-08-23 16:10:45 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2018-08-23 16:10:45 +0100
commitc07870270a7b271c549534345db46fd8fe5ad801 (patch)
tree287ae01d4510ab160c6133449e0c674437c631de
parent6de2ce26bcd54824a065e4158f2b4f58623af863 (diff)
downloadgcc-c07870270a7b271c549534345db46fd8fe5ad801.zip
gcc-c07870270a7b271c549534345db46fd8fe5ad801.tar.gz
gcc-c07870270a7b271c549534345db46fd8fe5ad801.tar.bz2
Fix C++98 tests to not use C++11 features.
* testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc: Fix C++98 test to not use C++11 features. * testsuite/25_algorithms/fill_n/2.cc: Likewise. From-SVN: r263815
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/testsuite/25_algorithms/fill_n/2.cc2
-rw-r--r--libstdc++-v3/testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc4
3 files changed, 7 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 722b45ad..9d579ba 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,9 @@
2018-08-23 Jonathan Wakely <jwakely@redhat.com>
+ * testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc:
+ Fix C++98 test to not use C++11 features.
+ * testsuite/25_algorithms/fill_n/2.cc: Likewise.
+
* scripts/check_compile: Fix comments.
* include/debug/string (insert(__const_iterator, _InIter, _InIter)):
diff --git a/libstdc++-v3/testsuite/25_algorithms/fill_n/2.cc b/libstdc++-v3/testsuite/25_algorithms/fill_n/2.cc
index 6e18032..fb951b5 100644
--- a/libstdc++-v3/testsuite/25_algorithms/fill_n/2.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/fill_n/2.cc
@@ -31,7 +31,7 @@ test01()
ref.push_back(1);
ref.push_back(2);
- std::vector<std::vector<int>> vvect;
+ std::vector<std::vector<int> > vvect;
vvect.push_back(std::vector<int>());
vvect.push_back(std::vector<int>());
diff --git a/libstdc++-v3/testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc b/libstdc++-v3/testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc
index 84449d6..5da782a 100644
--- a/libstdc++-v3/testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc
@@ -31,8 +31,8 @@ bad_lower(int lhs, int rhs)
void test01()
{
- int ins[] { 0, 1, 2, 3 };
- int outs[] { 9, 9 };
+ int ins[] = { 0, 1, 2, 3 };
+ int outs[] = { 9, 9 };
std::partial_sort_copy(ins, ins + 4, outs, outs + 2, bad_lower);
}