On 23/08/18 00:42 +0100, Jonathan Wakely wrote:
        * 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.

Two more fixes along the same lines.

Tested x86_64-linux, committed to trunk.


commit 132a337e0f59fa4a6fd2213418c6bb2e922ecf44
Author: Jonathan Wakely <jwak...@redhat.com>
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<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 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);
 }
 

Reply via email to