libstdc++: Fix testcase for C++98 compatibility
authorJonathan Wakely <jwakely@redhat.com>
Fri, 10 Jan 2020 15:27:50 +0000 (15:27 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 10 Jan 2020 15:27:50 +0000 (15:27 +0000)
* testsuite/25_algorithms/equal/deque_iterators/1.cc: Don't use C++11
initialization syntax.

From-SVN: r280117

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/25_algorithms/equal/deque_iterators/1.cc

index d1392c91649c8a32c511451d036231170485fdde..3d25ecc3da1a3e86fa5cf93493db3e8a2d30836a 100644 (file)
@@ -1,5 +1,8 @@
 2020-01-10  Jonathan Wakely  <jwakely@redhat.com>
 
+       * testsuite/25_algorithms/equal/deque_iterators/1.cc: Don't use C++11
+       initialization syntax.
+
        PR libstdc++/92285
        * include/bits/streambuf_iterator.h (istreambuf_iterator): Make type
        of base class independent of __cplusplus value.
index be60db813cc42d48eaba4fa2d0dd495079cb538b..82bef051542ff7fa946339bb335d72b367fa246e 100644 (file)
@@ -104,7 +104,7 @@ void test05()
 {
   using namespace std;
 
-  int a[] { 0, 1, 2, 3, 4 };
+  int a[] { 0, 1, 2, 3, 4 };
   deque<int, __gnu_cxx::new_allocator<int> > d1(a, a + 5);
   deque<int, __gnu_cxx::malloc_allocator<int> > d2(a, a + 5);