From: redi Date: Mon, 1 Aug 2016 12:18:13 +0000 (+0000) Subject: Make libstdc++ debug mode test valid for C++98 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7276e5bd279d951c1fc80276a41f3f5d4257bf00;p=thirdparty%2Fgcc.git Make libstdc++ debug mode test valid for C++98 * testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: Use C++98-compatible initialization for array. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238944 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1e44841c6f94..318b87ead330 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2016-08-01 Jonathan Wakely + * testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: Use + C++98-compatible initialization for array. + * testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue.cc: Remove unused header and variable from compile-only test. * testsuite/20_util/shared_ptr/assign/unique_ptr_rvalue.cc: Likewise. diff --git a/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/irreflexive.cc b/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/irreflexive.cc index f22452ecc8a2..1554df0d97f6 100644 --- a/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/irreflexive.cc +++ b/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/irreflexive.cc @@ -42,6 +42,6 @@ struct A_int_comparer void test01() { - A as[] { 0, 1, 2, 3 }; + A as[] = { 0, 1, 2, 3 }; std::lower_bound(as, as + 4, 1, A_int_comparer()); }