Skip to content

Commit 2be5943

Browse files
author
redi
committed
Fix failing C++17 test
* testsuite/24_iterators/range_access_cpp17.cc: Fix order of dg-do and dg-options directives. Fix invalid test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253019 138bc75d-0d04-0410-961f-82ee72b054a4
1 parent 194e23e commit 2be5943

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

libstdc++-v3/ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
2017-09-20 Jonathan Wakely <[email protected]>
22

3+
* testsuite/24_iterators/range_access_cpp17.cc: Fix order of dg-do
4+
and dg-options directives. Fix invalid test.
5+
36
PR libstdc++/81469
47
* libsupc++/exception (uncaught_exception): Deprecate for C++17.
58
* testsuite/18_support/exception_ptr/62258.cc: Add -Wno-deprecated.

libstdc++-v3/testsuite/24_iterators/range_access_cpp17.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// { dg-do compile { target c++17 } }
21
// { dg-options "-std=gnu++17" }
2+
// { dg-do compile { target c++17 } }
33

44
// Copyright (C) 2017 Free Software Foundation, Inc.
55
//
@@ -47,7 +47,7 @@ void
4747
test03()
4848
{
4949
using std::reverse_iterator;
50-
static std::initializer_list<int> il{1};
50+
static constexpr std::initializer_list<int> il{1};
5151
static_assert(std::cbegin(il) == il.begin());
5252
static_assert(std::cend(il) == il.end());
5353
static_assert(std::rbegin(il) == reverse_iterator<const int*>(il.end()));

0 commit comments

Comments
 (0)