Fix C++98 tests to not use C++11 features.
authorJonathan Wakely <jwakely@redhat.com>
Thu, 23 Aug 2018 15:10:45 +0000 (16:10 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 23 Aug 2018 15:10:45 +0000 (16:10 +0100)
* 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
libstdc++-v3/testsuite/25_algorithms/fill_n/2.cc
libstdc++-v3/testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc

index 722b45ad2e5a7f671ddda712a0fdf5b033c38c45..9d579baa20499170be32bc767bd0ad8e81f09518 100644 (file)
@@ -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)):
index 6e18032e1e69d587c27cd572c0363dd1bb80e723..fb951b5c175c2e7d5287e132e5589bb50ac6c51b 100644 (file)
@@ -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>());
 
index 84449d6dbd438208cd7e1fb87df04c4a4d4aaf96..5da782a45503b50b805487c5aaf612fe2af52305 100644 (file)
@@ -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);
 }