From a0d7550bd00cdc727b11b0455d163dbb90fa2162 Mon Sep 17 00:00:00 2001 From: redi Date: Wed, 25 Jul 2018 23:38:17 +0000 Subject: [PATCH] PR libstdc++/86676 another alignment fix for test PR libstdc++/86676 * testsuite/20_util/monotonic_buffer_resource/release.cc: Request same alignment for post-release allocation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262984 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/testsuite/20_util/monotonic_buffer_resource/release.cc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1a0a485bd2c..050b027fbe5 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2018-07-26 Jonathan Wakely + + PR libstdc++/86676 + * testsuite/20_util/monotonic_buffer_resource/release.cc: Request + same alignment for post-release allocation. + 2018-07-25 Jonathan Wakely PR libstdc++/86676 diff --git a/libstdc++-v3/testsuite/20_util/monotonic_buffer_resource/release.cc b/libstdc++-v3/testsuite/20_util/monotonic_buffer_resource/release.cc index ac70385961d..8aab4692d52 100644 --- a/libstdc++-v3/testsuite/20_util/monotonic_buffer_resource/release.cc +++ b/libstdc++-v3/testsuite/20_util/monotonic_buffer_resource/release.cc @@ -127,7 +127,7 @@ test04() VERIFY( mbr.upstream_resource() == &r ); VERIFY( r.number_of_active_allocations() == 0 ); // initial buffer should be used again now: - p = mbr.allocate(1000); + p = mbr.allocate(1000, 16); VERIFY( p == p_in_buffer ); VERIFY( r.allocate_calls == 1 ); } -- 2.11.4.GIT