commit 132a337e0f59fa4a6fd2213418c6bb2e922ecf44 Author: Jonathan Wakely Date: Thu Aug 23 14:17:36 2018 +0100 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. 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); }