From c07870270a7b271c549534345db46fd8fe5ad801 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 23 Aug 2018 16:10:45 +0100 Subject: [PATCH] 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 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/testsuite/25_algorithms/fill_n/2.cc | 2 +- .../25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 722b45ad2e5..9d579baa204 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2018-08-23 Jonathan Wakely + * 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 6e18032e1e6..fb951b5c175 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> vvect; + std::vector > vvect; vvect.push_back(std::vector()); vvect.push_back(std::vector()); 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 84449d6dbd4..5da782a4550 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); }