diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-09-20 17:34:53 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-09-20 17:34:53 +0100 |
commit | e18f68c715a58aa7dc267357ff4e957e9bfc3ff6 (patch) | |
tree | 943f3a0a5b23e83307d25c23f1a1e5c26a144493 | |
parent | 95ed529d34b992de4cfa3b4e1f3564f4c39772cb (diff) | |
download | gcc-e18f68c715a58aa7dc267357ff4e957e9bfc3ff6.zip gcc-e18f68c715a58aa7dc267357ff4e957e9bfc3ff6.tar.gz gcc-e18f68c715a58aa7dc267357ff4e957e9bfc3ff6.tar.bz2 |
Fix failing C++17 test
* testsuite/24_iterators/range_access_cpp17.cc: Fix order of dg-do
and dg-options directives. Fix invalid test.
From-SVN: r253019
-rw-r--r-- | libstdc++-v3/ChangeLog | 3 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/24_iterators/range_access_cpp17.cc | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9b789b9..9019455 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2017-09-20 Jonathan Wakely <jwakely@redhat.com> + * testsuite/24_iterators/range_access_cpp17.cc: Fix order of dg-do + and dg-options directives. Fix invalid test. + PR libstdc++/81469 * libsupc++/exception (uncaught_exception): Deprecate for C++17. * testsuite/18_support/exception_ptr/62258.cc: Add -Wno-deprecated. diff --git a/libstdc++-v3/testsuite/24_iterators/range_access_cpp17.cc b/libstdc++-v3/testsuite/24_iterators/range_access_cpp17.cc index 2402fa8..cb6b1c4 100644 --- a/libstdc++-v3/testsuite/24_iterators/range_access_cpp17.cc +++ b/libstdc++-v3/testsuite/24_iterators/range_access_cpp17.cc @@ -1,5 +1,5 @@ -// { dg-do compile { target c++17 } } // { dg-options "-std=gnu++17" } +// { dg-do compile { target c++17 } } // Copyright (C) 2017 Free Software Foundation, Inc. // @@ -47,7 +47,7 @@ void test03() { using std::reverse_iterator; - static std::initializer_list<int> il{1}; + static constexpr std::initializer_list<int> il{1}; static_assert(std::cbegin(il) == il.begin()); static_assert(std::cend(il) == il.end()); static_assert(std::rbegin(il) == reverse_iterator<const int*>(il.end())); |