From: Jonathan Wakely Date: Thu, 23 Aug 2018 15:10:45 +0000 (+0100) Subject: Fix C++98 tests to not use C++11 features. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c07870270a7b271c549534345db46fd8fe5ad801;p=gcc.git 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 --- 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); }