aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2016-08-01 13:18:13 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2016-08-01 13:18:13 +0100
commit98b5fb3cbccebf0560d22de0421d4f13aa23e328 (patch)
tree9c3c077acfcd9db954fe8ebe0c7f9fb2ad4c408f
parent6f3b889189099e4716b5a6d0ecca4918337adb88 (diff)
downloadgcc-98b5fb3cbccebf0560d22de0421d4f13aa23e328.zip
gcc-98b5fb3cbccebf0560d22de0421d4f13aa23e328.tar.gz
gcc-98b5fb3cbccebf0560d22de0421d4f13aa23e328.tar.bz2
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
-rw-r--r--libstdc++-v3/ChangeLog3
-rw-r--r--libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/irreflexive.cc2
2 files changed, 4 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 1e44841..318b87e 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,8 @@
2016-08-01 Jonathan Wakely <jwakely@redhat.com>
+ * 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 f22452e..1554df0 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());
}