From: Jonathan Wakely Date: Mon, 1 Aug 2016 12:18:13 +0000 (+0100) Subject: Make libstdc++ debug mode test valid for C++98 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98b5fb3cbccebf0560d22de0421d4f13aa23e328;p=gcc.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. From-SVN: r238944 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1e44841c6f9..318b87ead33 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 f22452ecc8a..1554df0d97f 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()); }