aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2016-08-01 12:18:13 +0000
committerJonathan Wakely <jwakely@redhat.com>2016-08-01 12:18:13 +0000
commit58ef8a3098dab712da2457c35bb0781ebd3d2328 (patch)
tree9c3c077acfcd9db954fe8ebe0c7f9fb2ad4c408f
parent46a5cc01fe38b3fe615cb91c7024a0b2b7c5cd96 (diff)
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: https://gcc.gnu.org/svn/gcc/trunk@238944 138bc75d-0d04-0410-961f-82ee72b054a4
-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 1e44841c6f9..318b87ead33 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 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());
}